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
This commit is contained in:
parent
f02a3330b1
commit
c3aff0c622
1 changed files with 1 additions and 3 deletions
|
@ -256,14 +256,12 @@ m.uci:foreach("network", "switch",
|
||||||
|
|
||||||
-- Build per-port off/untagged/tagged choice lists.
|
-- Build per-port off/untagged/tagged choice lists.
|
||||||
local pt
|
local pt
|
||||||
local off = 1
|
|
||||||
for pt = 0, num_ports - 1 do
|
for pt = 0, num_ports - 1 do
|
||||||
local title
|
local title
|
||||||
if pt == cpu_port then
|
if pt == cpu_port then
|
||||||
off = 0
|
|
||||||
title = translate("CPU")
|
title = translate("CPU")
|
||||||
else
|
else
|
||||||
title = translatef("Port %d", pt + off)
|
title = translatef("Port %d", pt)
|
||||||
end
|
end
|
||||||
|
|
||||||
local po = s:option(ListValue, tostring(pt), title)
|
local po = s:option(ListValue, tostring(pt), title)
|
||||||
|
|
Loading…
Reference in a new issue