") for pos, port in ipairs(layout.ports) do html.print(" | " .. pos .. " | ") end html.print("
")
html.print(" " .. config.name .. " ")
if config.name == "wan" then
local value = config.tagged and config.vlan or ""
html.print("vlan: ")
elseif config.name == "dtdlink" then
html.print("vlan: 2 ")
else
html.print("vlan: Untagged ")
end
html.print(" | ")
for _, port in ipairs(layout.ports)
do
local checked = config.ports[port] and "checked" or ""
html.print("") end html.print(" |
vlan | ip address | peer address | weight | ]]) if #layout.ports > 1 then html.print([[port | ]]) else html.print([[ ]]) end html.print([[cidr | ]]) html.print([[|
") html.print(" | ") html.print(" ") html.print(" | ") html.print(" | ") html.print(" |