diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-03-19 21:04:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-03-19 21:04:15 +0000 |
commit | c3aff0c622de2cf3e9afe77f66acbde3384ff062 (patch) | |
tree | ffa7cdc3d3485b2e3d029737c30e79f879e3ada9 /modules/admin-full/luasrc/model/cbi | |
parent | f02a3330b10cde45ab319054865b022529bbf094 (diff) |
modules/admin-full: since switch port numbers depend on model and current solar cycle, give up on making the human readable but just give the raw index
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 4 |
1 files changed, 1 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 f16a7a0c68..15f227f93d 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua @@ -256,14 +256,12 @@ m.uci:foreach("network", "switch", -- Build per-port off/untagged/tagged choice lists. local pt - local off = 1 for pt = 0, num_ports - 1 do local title if pt == cpu_port then - off = 0 title = translate("CPU") else - title = translatef("Port %d", pt + off) + title = translatef("Port %d", pt) end local po = s:option(ListValue, tostring(pt), title) |