% local view, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
<% showoption = function(option)
if option.errtxt or option.value ~= "" then %>
<%= html.html_escape(option.label) %> |
>
<%= string.gsub(html.html_escape(tostring(option.value)), "\n", " ") %>
<% if option.errtxt then io.write(" "..html.html_escape(option.errtxt)) end %>
|
<% end %>
<% end %>
<% displaycommandresults({"update", "delete", "ifup", "ifdown", "restart"}, 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 %>
- <%= html.html_escape(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 viewlibrary.check_permission("update") then %>
Edit
<% end
if viewlibrary.check_permission("delete") then %>
Delete
<% end
if viewlibrary.check_permission("ifup") then %>
ifup
<% end
if viewlibrary.check_permission("ifdown") then %>
ifdown
<% end %>
<% end %>
Restart Networking
WARNING!!! Restarting networking may cause the ACF web interface to stop functioning. Try refreshing this page after restarting. If that fails, you may have to use terminal access to recover.
- Restart Networking