aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-ui-switch.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-ui-switch.js
parentae354ad535de3d3126117977597025eccb932fb3 (diff)
Make network work again
Diffstat (limited to 'web/js/nms-ui-switch.js')
-rw-r--r--web/js/nms-ui-switch.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/js/nms-ui-switch.js b/web/js/nms-ui-switch.js
index 0919534..825ecd9 100644
--- a/web/js/nms-ui-switch.js
+++ b/web/js/nms-ui-switch.js
@@ -291,11 +291,12 @@ class nmsModNet extends nmsModThing {
}
generateBaseTemplate() {
this._template = {
- name: new nmsTypeNetwork("Unique networkname. Only required field. Read/only on existing nets."),
+ name: new nmsType("Unique networkname. Only required field. Read/only on existing nets."),
+ vlan: new nmsType("VLAN ID"),
gw4: new nmsTypeIP("Gateway address, IPv4"),
gw6: new nmsTypeIP("Gateway address, IPv6"),
- subnet4: new nmsTypeIP("Subnet, IPv4"),
- subnet6: new nmsTypeIP("Subnet, IPv6"),
+ subnet4: new nmsTypeCIDR("Subnet, IPv4"),
+ subnet6: new nmsTypeCIDR("Subnet, IPv6"),
router: new nmsTypeSysnameReference("Router where net is terminated. E.g.: r1.noc for floor traffic nets"),
tags: new nmsTypeTags("Additional tags in JSON text array format. Can be anything. Used to provide a simple escape hatch mechanism to tag systems.")
}