aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-info-box.js
diff options
context:
space:
mode:
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.
*