Class CDataGponDevice
java.lang.Object
org.bgerp.plugin.bgb.getolt.telnet.OltDevice
org.bgerp.plugin.bgb.getolt.telnet.vendor.CDataDevice
org.bgerp.plugin.bgb.getolt.telnet.vendor.CDataGponDevice
- All Implemented Interfaces:
AutoCloseable
CData GPON OLT device. Ported from GetOltv2 CDataGPON.java.
Extends CDataDevice with GPON-specific interface commands and patterns.
-
Nested Class Summary
Nested classes/interfaces inherited from class OltDevice
OltDevice.AuthenticationException, OltDevice.OLTException, OltDevice.ONUInfo -
Field Summary
Fields inherited from class OltDevice
AUTH_ERROR, curLogin, curPass, log, logMessages, loop_detection, MAX_RETRY_COUNT, passCurPos, patterns, port_isolation, portsCount, s1, sessionState, telnet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcleanConfigurationOutput(String config) Cleans the configuration output from pagination prompts and system messagesintgetDistanceForOnu(int port, int onuId) Gets distance to a specific ONU on GPON OLT.Overridden method to get distance and RTT information for GPON OLT.getInfo()protected StringReturns interface type for this device family.getMacToOnuRawForPort(int port) getOnuMacAddressesRawForPort(int port) getOpticalInfo(int port) protected intgetStatsOnuInPort(int port) voidrebootOnu(int port, int onuId) Methods inherited from class CDataDevice
enableConfigMode, enterInterfaceMode, getLoopDetection, getMacToOnuRaw, getOpticalInfo, getSerialNumber, getSystemTime, normalizeMac, parseDistanceInfo, parseDistanceInfoForPortMethods inherited from class OltDevice
addlog, addlog, authenticate, close, convertUtilsToLog, firmwareVersionInfo, getCurLogin, getCurPass, getDefaultPatterns, getLog, getLoopDetectionCached, getMacToOnu, getMacToOnuForPort, getOnuMacAddresses, getOnuMacAddressesForPort, getPortCount, getPortIsolationCached, getServerIp, getSessionState, getTelnet, isConnected, setAuthenticationResult, setAuthenticationResult
-
Constructor Details
-
CDataGponDevice
- Throws:
IOException
-
CDataGponDevice
- Throws:
IOException
-
-
Method Details
-
getVendor
- Overrides:
getVendorin classCDataDevice
-
getInterfaceType
Description copied from class:CDataDeviceReturns interface type for this device family. Override in GPON subclasses to return "gpon".- Overrides:
getInterfaceTypein classCDataDevice
-
getInfo
- Overrides:
getInfoin classCDataDevice- Throws:
IOException
-
getPortsCount
- Overrides:
getPortsCountin classCDataDevice- Throws:
IOException
-
getAllMac
-
getStatsOnuInPort
- Overrides:
getStatsOnuInPortin classOltDevice
-
getMacToOnuRawForPort
- Overrides:
getMacToOnuRawForPortin classCDataDevice- Throws:
IOException
-
getStatsOnuAllPorts
- Overrides:
getStatsOnuAllPortsin classOltDevice- Throws:
IOException
-
getOnuMacAddressesRaw
- Overrides:
getOnuMacAddressesRawin classCDataDevice- Throws:
IOException
-
getOnuMacAddressesRawForPort
protected Map<Integer, List<Map<String,String>>> getOnuMacAddressesRawForPort(int port) throws IOException - Overrides:
getOnuMacAddressesRawForPortin classCDataDevice- Throws:
IOException
-
getOpticalInfo
- Overrides:
getOpticalInfoin classCDataDevice- Throws:
IOException
-
getOpticalInfo
- Overrides:
getOpticalInfoin classCDataDevice- Throws:
IOException
-
getPortIsolation
- Overrides:
getPortIsolationin classCDataDevice- Throws:
IOException
-
getDistanceForOnu
Gets distance to a specific ONU on GPON OLT. Command: show ont info 0/0 port onuId Response contains: Distance(m) : 875- Parameters:
port- port numberonuId- ONU number- Returns:
- distance in meters, or -1 if not found
- Throws:
IOException
-
getDistanceInfo
Overridden method to get distance and RTT information for GPON OLT. GPON uses a different command compared to base CData.- Overrides:
getDistanceInfoin classCDataDevice- Returns:
Map<port, Map<onuId, int[]{distance, rtt}>>where int[0]=distance in meters, int[1]=RTT in Time Quanta- Throws:
IOException
-
getRunningConfig
- Overrides:
getRunningConfigin classCDataDevice
-
getStartupConfig
- Overrides:
getStartupConfigin classCDataDevice
-
cleanConfigurationOutput
Cleans the configuration output from pagination prompts and system messages- Overrides:
cleanConfigurationOutputin classCDataDevice
-
rebootOnu
- Overrides:
rebootOnuin classCDataDevice- Throws:
IOException
-