modules/admin-full: properly set device option for newly created vlan sections

This commit is contained in:
Jo-Philipp Wich 2011-07-22 13:56:02 +00:00
parent 224dc2daa2
commit 7b316be27b

View file

@ -172,6 +172,7 @@ m.uci:foreach("network", "switch",
if id ~= nil and id > max_id then max_id = id end if id ~= nil and id > max_id then max_id = id end
end) end)
m.uci:set("network", sid, "device", switch_name)
m.uci:set("network", sid, "vlan", max_nr + 1) m.uci:set("network", sid, "vlan", max_nr + 1)
if has_vlan4k then if has_vlan4k then