modules/admin-full: properly set device option for newly created vlan sections
[project/luci.git] / 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)
 
+                       m.uci:set("network", sid, "device", switch_name)
                        m.uci:set("network", sid, "vlan", max_nr + 1)
 
                        if has_vlan4k then