modules/admin-full: properly set device option for newly created vlan sections
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 22 Jul 2011 13:56:02 +0000 (13:56 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 22 Jul 2011 13:56:02 +0000 (13:56 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua

index dd8a6c64a0acd93c0bb8ce5d537bcbdd9c749eef..48e432946485f9118db8ac28397efc786becc785 100644 (file)
@@ -172,6 +172,7 @@ m.uci:foreach("network", "switch",
                                        if id ~= nil and id > max_id then max_id = id end
                                end)
 
                                        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
                        m.uci:set("network", sid, "vlan", max_nr + 1)
 
                        if has_vlan4k then