From 7b316be27b5ccfe2ca57b88c5d72d241d794611c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 22 Jul 2011 13:56:02 +0000 Subject: modules/admin-full: properly set device option for newly created vlan sections --- modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/admin-full/luasrc/model') 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 dd8a6c64a0..48e4329464 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 -- cgit v1.2.3