<% local view, viewlibrary, pageinfo, session = ... require("viewfunctions") %> <% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(view)) io.write("
") --]] %> <% showoption = function(option) if option.errtxt or option.value ~= "" then %> <%= option.label %> > <%= string.gsub(tostring(option.value), "\n", "
") %> <% if option.errtxt then io.write("
"..option.errtxt) end %> <% end %> <% end %> <% displaycommandresults({"delete", "ifup", "ifdown"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %>

Configured interfaces

<% for i,entry in ipairs(view.value) do local interface = entry.value %>
<%= interface.name.value %>
<% showoption(interface.family) if interface.method then showoption(interface.method) end for name,option in pairs(interface) do if name~="name" and name~="family" and name~="method" then showoption(option) end end %> <% if session.permissions.interfaces.update then %> Edit <% end if session.permissions.interfaces.delete then %> Delete <% end if session.permissions.interfaces.ifup then %> ifup <% end if session.permissions.interfaces.ifdown then %> ifdown <% end %>
<% end %>
<% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] %>