aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-21 11:57:33 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-21 11:57:33 +0100
commit9294a2f2b20a9289a9b5c4a4b72f308de85d8c30 (patch)
treecbc46977e0aab6746766e9d13c0a32f3cd9a9782
parentdbfb132de4140505e6ad68ffde30f04e0ec16e51 (diff)
NMS: Fix switch movement and poll timeout
-rwxr-xr-xclients/snmpfetchng.pl2
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js2
-rw-r--r--web/nms.gathering.org/js/nms-map.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/clients/snmpfetchng.pl b/clients/snmpfetchng.pl
index bece8ab..36dd675 100755
--- a/clients/snmpfetchng.pl
+++ b/clients/snmpfetchng.pl
@@ -95,7 +95,7 @@ sub inner_loop
}
}
mylog( "Polling " . @switches . " switches: $poll_todo");
- SNMP::MainLoop(5);
+ SNMP::MainLoop(10);
}
sub callback{
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js
index 88bc7d7..dc993a9 100644
--- a/web/nms.gathering.org/js/nms-info-box.js
+++ b/web/nms.gathering.org/js/nms-info-box.js
@@ -133,6 +133,8 @@ nmsInfoBox._windowTypes.addSwitch = {
if(result.switches_addded.length > 0) {
nmsInfoBox.hide();
}
+ nmsData.invalidate("switches");
+ nmsData.invalidate("smanagement");
}
});
}
diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js
index bbb304f..b74626a 100644
--- a/web/nms.gathering.org/js/nms-map.js
+++ b/web/nms.gathering.org/js/nms-map.js
@@ -433,7 +433,7 @@ nmsMap._moveSubmit = function() {
var myData = JSON.stringify([data]);
$.ajax({
type: "POST",
- url: "/api/private/switch-add",
+ url: "/api/private/switch-update",
dataType: "text",
data:myData,
success: function (data, textStatus, jqXHR) {