diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-22 13:56:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-22 13:56:02 +0000 |
commit | 7b316be27b5ccfe2ca57b88c5d72d241d794611c (patch) | |
tree | 88a57f5d369843a907c3369ad7cecc54f646edcd | |
parent | 224dc2daa2038f35beec665bf687ec0fa9544d29 (diff) |
modules/admin-full: properly set device option for newly created vlan sections
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 1 |
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 |