modules/admin-full: various vlan fixes
This commit is contained in:
parent
bc78f7e08d
commit
3b1f2e9021
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,7 @@ m.uci:foreach("network", "switch",
|
||||||
local vid = s:option(Value, has_vlan4k or "vlan", "VLAN ID")
|
local vid = s:option(Value, has_vlan4k or "vlan", "VLAN ID")
|
||||||
|
|
||||||
vid.rmempty = false
|
vid.rmempty = false
|
||||||
|
vid.forcewrite = true
|
||||||
|
|
||||||
-- Validate user provided VLAN ID, make sure its within the bounds
|
-- Validate user provided VLAN ID, make sure its within the bounds
|
||||||
-- allowed by the switch.
|
-- allowed by the switch.
|
||||||
|
@ -250,6 +251,7 @@ m.uci:foreach("network", "switch",
|
||||||
|
|
||||||
po.cfgvalue = portvalue
|
po.cfgvalue = portvalue
|
||||||
po.validate = portvalidate
|
po.validate = portvalidate
|
||||||
|
po.write = function() end
|
||||||
|
|
||||||
port_opts[#port_opts+1] = po
|
port_opts[#port_opts+1] = po
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue