From 112d053284baf321a8529690f6483709ae6f4acb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 May 2009 01:51:59 +0000 Subject: modules/admin-full: add sanity checks to interface status page --- modules/admin-full/luasrc/view/admin_status/interfaces.htm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/admin-full/luasrc/view/admin_status') diff --git a/modules/admin-full/luasrc/view/admin_status/interfaces.htm b/modules/admin-full/luasrc/view/admin_status/interfaces.htm index abcf6f5dc..99d5ba824 100644 --- a/modules/admin-full/luasrc/view/admin_status/interfaces.htm +++ b/modules/admin-full/luasrc/view/admin_status/interfaces.htm @@ -171,6 +171,8 @@ $Id$ <% for _, i in ipairs(single_ifs) do dev = get_ifname(i) vlan = get_vlan(dev) + + if devinfo and devinfo[dev] then %>

<%:a_s_if_interface Interface%> <%=i['.name']%>

@@ -221,12 +223,14 @@ $Id$ <% end %> <%- end -%>

- <% end %> + <% end end %> <% for _, b in ipairs(bridge_ifs) do br = get_brinfo(b) dev = br.name + + if devinfo and devinfo[dev] then %>

<%:a_s_if_bridge Bridge%> <%=br.name%>

@@ -294,7 +298,7 @@ $Id$ <% end -%>
<% end %>

- <% end %> + <% end end %> -- cgit v1.2.3