forked from tqandrade/snmp-fiberhome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnmp-fiberhome.js
78 lines (70 loc) · 2.53 KB
/
snmp-fiberhome.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
require('./src/prototype-functions')
const gFunc = require('./src/global-functions')
const olt = require('./src/olt')
const slot = require('./src/slot')
const card = require('./src/card')
const onu = require('./src/onu')
module.exports = {
version: { SNMPv1: 0, SNMPv2c: 1, SNMPv3: 3 },
// OLT
getBasicPonPortList: olt.getBasicPonPortList,
getOltInformation: olt.getOltInformation,
getOltModel: olt.getOltModel,
getPonPort: olt.getPonPort,
getPonPortList: olt.getPonPortList,
getSubrackInformation: olt.getSubrackInformation,
// SLOT
getSlots: slot.getSlots,
getSlotsInformationList: slot.getSlotsInformationList,
// CARD
getCard: card.getCard,
getCardList: card.getCardList,
// ONU
addAllOnus: onu.addAllOnus,
addOnu: onu.addOnu,
authenticateOnu: onu.authenticateOnu,
authorizeOnu: onu.authorizeOnu,
convertToOnuIndex: onu.convertToOnuIndex,
delOnu: onu.delOnu,
delOnuByIndex: onu.delOnuByIndex,
delOnuByMacAddress: onu.delOnuByMacAddress,
delWan: onu.delWan,
enableLanPorts: onu.enableLanPorts,
getAuthorizedOnus: onu.getAuthorizedOnus,
getBasicOnuInfo: onu.getBasicOnuInfo,
getBasicOnuListByPon: onu.getBasicOnuListByPon,
getBasicOnuListByPonValenet: onu.getBasicOnuListByPonValenet,
getLanPorts: onu.getLanPorts,
getLanPortsEPON: onu.getLanPortsEPON,
getLanPortsGPON: onu.getLanPortsGPON,
getMacAddressList: onu.getMacAddressList,
getOnu: onu.getOnu,
getOnuBandwidth: onu.getOnuBandwidth,
getOnuByIndex: onu.getOnuByIndex,
getOnuDistance: onu.getOnuDistance,
getOnuIdList: onu.getOnuIdList,
getOnuIdListByPon: onu.getOnuIdListByPon,
getOnuIndexList: onu.getOnuIndexList,
getOnuLastOffTime: onu.getOnuLastOffTime,
getOnuListByPon: onu.getOnuListByPon,
getOnuOpticalPower: onu.getOnuOpticalPower,
getOnuRxPowerListByPon: onu.getOnuRxPowerListByPon,
getOnuOpticalPowerList: onu.getOnuOpticalPowerList,
getOnuType: onu.getOnuType,
getOnuUplinkInterface: onu.getOnuUplinkInterface,
getOnuWebAdmin: onu.getOnuWebAdmin,
getUnauthorizedOnus: onu.getUnauthorizedOnus,
getWan: onu.getWan,
parseOnuIndex: onu.parseOnuIndex,
rebootOnu: onu.rebootOnu,
setLanPorts: onu.setLanPorts,
setLanPortsEPON: onu.setLanPortsEPON,
setLanPortsGPON: onu.setLanPortsGPON,
setOnuBandwidth: onu.setOnuBandwidth,
setOnuWebAdmin: onu.setOnuWebAdmin,
setWan: onu.setWan,
// Global Functions
timeNow: gFunc.timeNow,
diffTime: gFunc.diffTime,
isValid: gFunc.isValid,
}