Class GateRayDevice
java.lang.Object
org.bgerp.plugin.bgb.getolt.telnet.OltDevice
org.bgerp.plugin.bgb.getolt.telnet.vendor.GateRayDevice
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GateRay2020Device
GateRay OLT device. Ported 1:1 from GetOltv2 GateRay.java.
-
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 from pagination prompts, system messages and invalid lines according to GateRay OLT device syntaxGets distance information for all ONUs on all ports.getInfo()getMacToOnuRawForPort(int port) getOnuMacAddressesRawForPort(int port) getOpticalInfo(int port) protected intstatic intparsePortCount(String input) static intParses the port count from System Description Examples: GR-EP-OLT1-8 -> 8, GR-EP-OLT1-16 -> 16voidrebootOnu(int port, int onuId) Methods inherited from class 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
-
GateRayDevice
- Throws:
IOException
-
GateRayDevice
- Throws:
IOException
-
-
Method Details
-
getVendor
-
getSerialNumber
- Specified by:
getSerialNumberin classOltDevice
-
getSystemTime
- Specified by:
getSystemTimein classOltDevice
-
getLoopDetection
- Specified by:
getLoopDetectionin classOltDevice- Throws:
IOException
-
getPortIsolation
- Specified by:
getPortIsolationin classOltDevice- Throws:
IOException
-
getInfo
- Specified by:
getInfoin classOltDevice- Throws:
IOException
-
getPortsCount
- Specified by:
getPortsCountin classOltDevice- Throws:
IOException
-
parsePortCountFromSystemDescription
Parses the port count from System Description Examples: GR-EP-OLT1-8 -> 8, GR-EP-OLT1-16 -> 16 -
parsePortCount
-
getOpticalInfo
- Specified by:
getOpticalInfoin classOltDevice- Throws:
IOException
-
getOpticalInfo
- Specified by:
getOpticalInfoin classOltDevice- Throws:
IOException
-
getMacToOnuRaw
- Overrides:
getMacToOnuRawin classOltDevice- Throws:
IOException
-
getMacToOnuRawForPort
- Overrides:
getMacToOnuRawForPortin classOltDevice- Throws:
IOException
-
getStatsOnuAllPorts
- Overrides:
getStatsOnuAllPortsin classOltDevice- Throws:
IOException
-
getOnuMacAddressesRaw
- Overrides:
getOnuMacAddressesRawin classOltDevice- Throws:
IOException
-
getOnuMacAddressesRawForPort
protected Map<Integer, List<Map<String,String>>> getOnuMacAddressesRawForPort(int port) throws IOException - Overrides:
getOnuMacAddressesRawForPortin classOltDevice- Throws:
IOException
-
cleanConfigurationOutput
-
getRunningConfig
- Overrides:
getRunningConfigin classOltDevice
-
getStartupConfig
- Overrides:
getStartupConfigin classOltDevice
-
getDistanceInfo
Gets distance information for all ONUs on all ports. Command:show olt <port> online-onuOutput format: Port ONU MAC Type CTC Dist(m) Software-Ver 1 1 e0-67-b3-92-bf-c1 ONU1GEZ 3.0 1067 V2.1.2- Specified by:
getDistanceInfoin classOltDevice- Returns:
Map<port, Map<onuId, int[]{distance, rtt}>>where int[0]=distance in meters, int[1]=RTT (always 0)- Throws:
IOException
-
rebootOnu
- Specified by:
rebootOnuin classOltDevice- Throws:
IOException
-