<%# Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Copyright 2011 Manuel Munz Licensed to the public under the Apache License 2.0. -%> <% local i = 1 %> <%+header%>

<%:Interfaces%>

<%:Overview of interfaces where OLSR is running%>
<%:Interface%>
<%:Device%>
<%:State%>
<%:MTU%>
<%:WLAN%>
<%:Source address%>
<%:Netmask%>
<%:Broadcast address%>
<% for k, iface in ipairs(iface) do %>
<%=iface.interface%>
<%=iface.name%>
<%=iface.olsrInterface.up and luci.i18n.translate('up') or luci.i18n.translate('down')%>
<%=iface.olsrInterface.mtu%>
<%=iface.olsrInterface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%>
<%=iface.olsrInterface.ipAddress%>
<%=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Netmask%>
<%=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Broadcast or iface.olsrInterface.ipv6Multicast%>
<% i = ((i % 2) + 1) end %>
<%+status-olsr/common_js%> <%+footer%>