diff options
author | Ole Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com> | 2019-04-11 22:54:54 +0100 |
---|---|---|
committer | olemathias.aa.heggem@gmail.com <root@gondul.tg19.gathering.org> | 2019-04-11 22:54:54 +0100 |
commit | 294cc96c4c8f2133725c37a930330bd0efe59f73 (patch) | |
tree | e1541d4eb35d72d2f427fbac991c46ae050de9b1 /web/js/nms-info-box.js | |
parent | ae354ad535de3d3126117977597025eccb932fb3 (diff) |
Make network work again
Diffstat (limited to 'web/js/nms-info-box.js')
-rw-r--r-- | web/js/nms-info-box.js | 18 |
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. * |