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 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 StringcleanConfigurationOutput(String config) Очищает конфигурацию от пагинационных промптов, системных сообщений и некорректных строк согласно синтаксису GateRay OLT устройствПолучает информацию о дистанции для всех ONU на всех портах.getInfo()getMacToOnuRawForPort(int port) getOnuMacAddressesRawForPort(int port) getOpticalInfo(int port) protected intstatic intparsePortCount(String input) static intПарсит количество портов из System Description Примеры: GR-EP-OLT1-8 -> 8, GR-EP-OLT1-16 -> 16voidrebootOnu(int port, int onuId) Methods 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
-
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
Парсит количество портов из System Description Примеры: 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, getOnuMacAddressesRawForPortString>>> (int port) throws IOException - Overrides:
getOnuMacAddressesRawForPortin classOltDevice- Throws:
IOException
-
cleanConfigurationOutput
Очищает конфигурацию от пагинационных промптов, системных сообщений и некорректных строк согласно синтаксису GateRay OLT устройств -
getRunningConfig
- Overrides:
getRunningConfigin classOltDevice
-
getStartupConfig
- Overrides:
getStartupConfigin classOltDevice
-
getDistanceInfo
Получает информацию о дистанции для всех ONU на всех портах. Команда: show oltonline-onu Формат вывода: 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:
- Mapinvalid input: '<'port, Mapinvalid input: '<'onuId, int[]{distance, rtt}>> где int[0]=distance в метрах, int[1]=RTT (всегда 0)
- Throws:
IOException
-
rebootOnu
- Specified by:
rebootOnuin classOltDevice- Throws:
IOException
-