summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-30 02:30:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-30 02:30:49 +0000
commit3b1f2e90216131575ab65adfc204635106b8c23e (patch)
tree18d1709a2355977cc42aba33a680e51d523fd42b /modules
parentbc78f7e08d1feeda45b33a616bd69bd138897cb3 (diff)
modules/admin-full: various vlan fixes
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
index 149b5c6e6..c71b9a0f7 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@ -199,6 +199,7 @@ m.uci:foreach("network", "switch",
local vid = s:option(Value, has_vlan4k or "vlan", "VLAN ID")
vid.rmempty = false
+ vid.forcewrite = true
-- Validate user provided VLAN ID, make sure its within the bounds
-- allowed by the switch.
@@ -250,6 +251,7 @@ m.uci:foreach("network", "switch",
po.cfgvalue = portvalue
po.validate = portvalidate
+ po.write = function() end
port_opts[#port_opts+1] = po
end