diff options
author | Sjur Fredriksen <sjurtf@ifi.uio.no> | 2019-04-14 12:25:17 +0200 |
---|---|---|
committer | Sjur Fredriksen <sjurtf@ifi.uio.no> | 2019-04-14 12:25:17 +0200 |
commit | 68f92ee69b944383dc2659ac358555f7548662a4 (patch) | |
tree | c25360e50def7b91daa3b3c7bcd3c23fa23102c0 | |
parent | 294cc96c4c8f2133725c37a930330bd0efe59f73 (diff) |
update what to look for in alias
-rw-r--r-- | web/js/nms-map-handlers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/nms-map-handlers.js b/web/js/nms-map-handlers.js index f5f072b..f4362f5 100644 --- a/web/js/nms-map-handlers.js +++ b/web/js/nms-map-handlers.js @@ -767,10 +767,10 @@ function snmpUpInfo(sw) { var seen_up = 0; for (var port in nmsData.snmp.snmp[sw].ports) { var x = nmsData.snmp.snmp[sw].ports[port]; - if (x["ifAlias"].match(/Gruppe/i) && x["ifOperStatus"] == "up") { + if (x["ifAlias"].match(/B:/i) && x["ifOperStatus"] == "up") { total_up += parseInt(x["ifHighSpeed"]); } - if (x["ifAlias"].match(/Fysisk/i) && x["ifOperStatus"] == "up") { + if (x["ifAlias"].match(/G:/i) && x["ifOperStatus"] == "up") { seen_up += parseInt(x["ifHighSpeed"]); } } |