summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-22 13:56:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-22 13:56:02 +0000
commit7b316be27b5ccfe2ca57b88c5d72d241d794611c (patch)
tree88a57f5d369843a907c3369ad7cecc54f646edcd /modules
parent224dc2daa2038f35beec665bf687ec0fa9544d29 (diff)
modules/admin-full: properly set device option for newly created vlan sections
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua1
1 files changed, 1 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 dd8a6c64a..48e432946 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@ -172,6 +172,7 @@ m.uci:foreach("network", "switch",
if id ~= nil and id > max_id then max_id = id end
end)
+ m.uci:set("network", sid, "device", switch_name)
m.uci:set("network", sid, "vlan", max_nr + 1)
if has_vlan4k then