aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-info-box.js
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com>2019-04-11 22:54:54 +0100
committerolemathias.aa.heggem@gmail.com <root@gondul.tg19.gathering.org>2019-04-11 22:54:54 +0100
commit294cc96c4c8f2133725c37a930330bd0efe59f73 (patch)
treee1541d4eb35d72d2f427fbac991c46ae050de9b1 /web/js/nms-info-box.js
parentae354ad535de3d3126117977597025eccb932fb3 (diff)
Make network work again
Diffstat (limited to 'web/js/nms-info-box.js')
-rw-r--r--web/js/nms-info-box.js18
1 files changed, 18 insertions, 0 deletions
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.
*