diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-17 08:28:56 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-17 08:28:56 +0000 |
commit | 9fdb4acec0617a31ad54c0393d4002fb77536cdc (patch) | |
tree | 9f48f59d44166f7348721458e2668ae4149503a5 /modules/admin-full/luasrc | |
parent | 76e5b68bb921fdbb95cec4a42cb3c69800e6ac41 (diff) |
modules/admin-full: fix 4k vlan option
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 ee35261b8b..dd8a6c64a0 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua @@ -62,15 +62,15 @@ m.uci:foreach("network", "switch", if is_vlan_attr then has_vlan4k = line:match(": (%w+)") end if is_port_attr then has_ptpvid = line:match(": (%w+)") end + elseif line:match(": enable_vlan4k") then + enable_vlan4k = true + elseif line:match(": enable_vlan") then has_vlan = "enable_vlan" elseif line:match(": enable_learning") then has_learn = "enable_learning" - elseif line:match(": enable_vlan4k") then - enable_vlan4k = true - elseif line:match(": max_length") then has_jumbo3 = "max_length" end |