Class CDataFD1608Device
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.CDataFD1608Device
- All Implemented Interfaces:
AutoCloseable
CData FD1608S-B1 OLT device. Ported from GetOltv2 CDataFD1608SB1.java.
GPON-based device with FD1608-specific patterns and parsing.
Determined by "FD1608S-B1" in greeting banner.
Key differences from base CDataDevice (EPON):
- GPON interface type (interface gpon 0/0)
- MAC table via "show mac-address all" (not per-port epon command)
- Optical info with two format support (primary + alternative with inf values)
- Running/startup config read via readByTimeout (not readUntils) because config
contains "#" in commented lines (#tcont) which confuses readUntils
- Distance per ONU via "show ont info 0/0 {port} {onu}"
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bgerp.plugin.bgb.getolt.telnet.OltDevice
OltDevice.AuthenticationException, OltDevice.OLTException, OltDevice.ONUInfo -
Field Summary
Fields inherited from class org.bgerp.plugin.bgb.getolt.telnet.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 voidintgetDistanceForOnu(int port, int onuId) Gets distance to a specific ONU on GPON OLT.getInfo()protected StringReturns interface type for this device family.getMacToOnuRawForPort(int port) getOnuMacAddressesRawForPort(int port) getOpticalInfo(int port) protected intvoidrebootOnu(int port, int onuId) Methods inherited from class org.bgerp.plugin.bgb.getolt.telnet.vendor.CDataDevice
cleanConfigurationOutput, enterInterfaceMode, getDistanceInfo, getLoopDetection, getMacToOnuRaw, getOpticalInfo, getSerialNumber, getSystemTime, normalizeMac, parseDistanceInfo, parseDistanceInfoForPortMethods inherited from class org.bgerp.plugin.bgb.getolt.telnet.OltDevice
addlog, addlog, authenticate, close, convertUtilsToLog, firmwareVersionInfo, getAllMac, getCurLogin, getCurPass, getDefaultPatterns, getLog, getLoopDetectionCached, getMacToOnu, getMacToOnuForPort, getOnuMacAddresses, getOnuMacAddressesForPort, getPortCount, getPortIsolationCached, getServerIp, getSessionState, getStatsOnuInPort, getTelnet, isConnected, setAuthenticationResult, setAuthenticationResult
-
Constructor Details
-
CDataFD1608Device
Constructor for CDataFD1608Device- Parameters:
ip- IP address of the OLT- Throws:
IOException- If connection fails
-
CDataFD1608Device
- 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
-
getPortIsolation
- Overrides:
getPortIsolationin classCDataDevice- Throws:
IOException
-
getMacToOnuRawForPort
- Overrides:
getMacToOnuRawForPortin classCDataDevice
-
getStatsOnuAllPorts
- Overrides:
getStatsOnuAllPortsin classOltDevice
-
getOnuMacAddressesRaw
- Overrides:
getOnuMacAddressesRawin classCDataDevice- Throws:
IOException
-
getOnuMacAddressesRawForPort
protected Map<Integer,List<Map<String, getOnuMacAddressesRawForPortString>>> (int port) throws IOException - Overrides:
getOnuMacAddressesRawForPortin classCDataDevice- Throws:
IOException
-
getOpticalInfo
- Overrides:
getOpticalInfoin classCDataDevice- Throws:
IOException
-
getOpticalInfo
- Overrides:
getOpticalInfoin classCDataDevice- Throws:
IOException
-
getDistanceForOnu
Gets distance to a specific ONU on GPON OLT. Command: show ont info 0/0 {port} {onu} Response contains: Distance(m) : 875- Parameters:
port- port numberonuId- ONU number- Returns:
- distance in meters, or -1 if not found
- Throws:
IOException
-
enableConfigMode
protected void enableConfigMode()- Overrides:
enableConfigModein classCDataDevice
-
getPortsCount
- Overrides:
getPortsCountin classCDataDevice- Throws:
IOException
-
getInfo
- Overrides:
getInfoin classCDataDevice- Throws:
IOException
-
getRunningConfig
- Overrides:
getRunningConfigin classCDataDevice
-
getStartupConfig
- Overrides:
getStartupConfigin classCDataDevice
-
rebootOnu
- Overrides:
rebootOnuin classCDataDevice- Throws:
IOException
-