snmp-fiberhome
Advanced tools
Comparing version 1.2.5 to 1.2.6
{ | ||
"name": "snmp-fiberhome", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "This module communicates with Fiberhome OLTs using the SNMP protocol. The module is capable of managing the OLT, Slots, Cards, pon ports and ONUs by performing read and write functions directly in OLT.", | ||
@@ -5,0 +5,0 @@ "main": "snmp-fiberhome.js", |
@@ -232,8 +232,8 @@ # snmp-fiberhome | ||
portDownlinkRateUnit: 'Mbit/s', | ||
portEnableStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portEnableStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portEnableStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portEnableStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portIndex: 369623040, | ||
portName: 'PON 11/1', | ||
portOnlineStatus: 'online', // possible values: 'online' or 'offline' | ||
portOnlineStatusValue: 1, // 1 = 'online', 0 = 'offline' | ||
portOnlineStatus: 'online', // possible values: 'online' or 'offline' | ||
portOnlineStatusValue: 1, // 1 = 'online', 0 = 'offline' | ||
portType: 'PON', | ||
@@ -274,8 +274,8 @@ portTypeValue: 1 | ||
portDownlinkRateUnit: 'Mbit/s', | ||
portEnableStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portEnableStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portEnableStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portEnableStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portIndex: 369623040, | ||
portName: 'PON 11/1', | ||
portOnlineStatus: 'online', // possible values: 'online' or 'offline' | ||
portOnlineStatusValue: 1, // 1 = 'online', 0 = 'offline' | ||
portOnlineStatus: 'online', // possible values: 'online' or 'offline' | ||
portOnlineStatusValue: 1, // 1 = 'online', 0 = 'offline' | ||
portType: 'PON', | ||
@@ -340,9 +340,9 @@ portTypeValue: 1 | ||
authorizedCardTypeValue: 527, | ||
cardPresentStatus: 'present', // possible values: 'present' or 'not present' | ||
cardPresentStatusValue: 1, // 1 = 'present', 0 = 'not present' | ||
cardPresentStatus: 'present', // possible values: 'present' or 'not present' | ||
cardPresentStatusValue: 1, // 1 = 'present', 0 = 'not present' | ||
cardInformation: { | ||
availablePorts: 8, | ||
numberOfPorts: 8, | ||
cardStatus: 'normal', // possible values: 'normal' or 'interrupted' | ||
cardStatusValue: 1, // 1 = 'normal', 0 = 'interrupted' | ||
cardStatus: 'normal', // possible values: 'normal' or 'interrupted' | ||
cardStatusValue: 1, // 1 = 'normal', 0 = 'interrupted' | ||
cardType: 'GC8B', | ||
@@ -390,4 +390,4 @@ cardTypeValue: 527, | ||
numberOfPorts: 8, | ||
cardStatus: 'normal', // possible values: 'normal' or 'interrupted' | ||
cardStatusValue: 1, // 1 = 'normal', 0 = 'interrupted' | ||
cardStatus: 'normal', // possible values: 'normal' or 'interrupted' | ||
cardStatusValue: 1, // 1 = 'normal', 0 = 'interrupted' | ||
cardType: 'GC8B', | ||
@@ -431,4 +431,4 @@ cardTypeValue: 527, | ||
numberOfPorts: 8, | ||
cardStatus: 'normal', // possible values: 'normal' or 'interrupted' | ||
cardStatusValue: 1, // 1 = 'normal', 0 = 'interrupted' | ||
cardStatus: 'normal', // possible values: 'normal' or 'interrupted' | ||
cardStatusValue: 1, // 1 = 'normal', 0 = 'interrupted' | ||
cardType: 'GC8B', | ||
@@ -908,4 +908,4 @@ cardTypeValue: 527, | ||
onuLogicAuthIdPass: '', | ||
onuStatus: 'online', // possible values: 'fiber cut', 'online', 'power cut' or 'offline' | ||
onuStatusValue: 1, // 0 = 'fiber cut', 1 = 'online', 2 = 'power cut' or 3 = 'offline' | ||
onuStatus: 'online', // possible values: 'fiber cut', 'online', 'power cut' or 'offline' | ||
onuStatusValue: 1, // 0 = 'fiber cut', 1 = 'online', 2 = 'power cut' or 3 = 'offline' | ||
softwareVersion: 'RP2522', | ||
@@ -961,4 +961,4 @@ systemName: '', | ||
portName: 'PON 11/1/1', | ||
portStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portType: 1, | ||
@@ -1152,4 +1152,4 @@ uplinkRate: 1250, | ||
onuLogicAuthIdPass: '', | ||
onuStatus: 'online', // possible values: 'fiber cut', 'online', 'power cut' or 'offline' | ||
onuStatusValue: 1, // 0 = 'fiber cut', 1 = 'online', 2 = 'power cut' or 3 = 'offline' | ||
onuStatus: 'online', // possible values: 'fiber cut', 'online', 'power cut' or 'offline' | ||
onuStatusValue: 1, // 0 = 'fiber cut', 1 = 'online', 2 = 'power cut' or 3 = 'offline' | ||
softwareVersion: 'RP2522', | ||
@@ -1372,4 +1372,4 @@ systemName: '', | ||
portName: 'PON 11/1/1', | ||
portStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portStatus: 'enable', // possible values: 'enable' or 'disable' | ||
portStatusValue: 1, // 1 = 'enable', 0 = 'disable' | ||
portType: 1, | ||
@@ -1404,4 +1404,4 @@ uplinkRate: 1250, | ||
{ | ||
group: 'common', // possible values: 'common' or 'admin' | ||
groupValue: 1, // 1 = 'common', 2 = 'admin' | ||
group: 'common', // possible values: 'common' or 'admin' | ||
groupValue: 1, // 1 = 'common', 2 = 'admin' | ||
webUsername: 'user1', | ||
@@ -1956,2 +1956,4 @@ webPassword: '1111' | ||
- Code improvements | ||
- (version: 1.2.6) | ||
- Fixed bug for COS parameter equal to zero | ||
@@ -1958,0 +1960,0 @@ # Contributions |
@@ -131,4 +131,2 @@ var tape = require('tape') | ||
}) | ||
}) | ||
@@ -145,3 +143,2 @@ | ||
}) | ||
}) | ||
@@ -185,7 +182,5 @@ | ||
}) | ||
}) | ||
test('getOnu():', async (t) => { | ||
await fh.getOnu(env.options, env.onu.slot, env.onu.pon, env.onu.onuId).then(onu => { | ||
@@ -196,4 +191,2 @@ console.log(onu) | ||
}) | ||
}) | ||
@@ -206,3 +199,2 @@ | ||
}) | ||
}) | ||
@@ -223,3 +215,2 @@ | ||
}) | ||
}) | ||
@@ -232,3 +223,2 @@ | ||
}) | ||
}) | ||
@@ -247,3 +237,2 @@ | ||
}) | ||
}) | ||
@@ -266,3 +255,2 @@ | ||
}) | ||
}) | ||
@@ -290,6 +278,4 @@ | ||
}) | ||
} | ||
function delay(time) { | ||
@@ -296,0 +282,0 @@ return new Promise(function (resolve, reject) { |
Sorry, the diff of this file is too big to display
267811
1968