aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-dhcp.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms-dhcp.js')
-rw-r--r--web/js/nms-dhcp.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/js/nms-dhcp.js b/web/js/nms-dhcp.js
new file mode 100644
index 0000000..b852a45
--- /dev/null
+++ b/web/js/nms-dhcp.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var nmsDhcp = nmsDhcp || {
+
+}
+
+nmsDhcp.init = function() {
+ nmsData.addHandler("dhcpsummary", "nmsDhcpHandler", nmsDhcp.updateSummary);
+}
+
+nmsDhcp.updateSummary = function() {
+ var e = document.getElementById("dhcp-summary");
+ if (e == undefined) {
+ return;
+ }
+ e.innerHTML = nmsData.dhcpsummary.dhcp.clients + " clients";
+}