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-ui-switch.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'web/js/nms-ui-switch.js') 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.") } -- cgit v1.2.3