modules/admin-full: properly set device option for newly created vlan sections
This commit is contained in:
parent
224dc2daa2
commit
7b316be27b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue