From 294cc96c4c8f2133725c37a930330bd0efe59f73 Mon Sep 17 00:00:00 2001 From: "Ole Mathias Aa. Heggem" Date: Thu, 11 Apr 2019 22:54:54 +0100 Subject: Make network work again --- web/js/nms-info-box.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'web/js/nms-info-box.js') diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js index 869f308..23113d7 100644 --- a/web/js/nms-info-box.js +++ b/web/js/nms-info-box.js @@ -1004,6 +1004,24 @@ var networkSummaryPanel = function() { } nmsInfoBox.addPanelType("networkSummary",networkSummaryPanel); + +/* + * Panel type: Edit network + * + * Lets you edit basic switch and switch management data through the switch-update api + * + */ +var networkEditPanel = function () { + nmsInfoPanel.call(this,"networkEdit"); + this.refresh = function (reason) { + if (this.box) { return; } + this.box = new nmsModNet(this.sw); + this.box.attach(this.me) + this.box.show() + }; +}; +nmsInfoBox.addPanelType("networkEdit",networkEditPanel); + /* * Provide common defaults for graph renders. * -- cgit v1.2.3