2010-12-17 02:14:28 +00:00
< %#
2015-01-16 22:38:38 +00:00
Copyright 2008 Steven Barth < steven @ midlink . org >
2015-01-16 22:46:42 +00:00
Copyright 2008 Jo-Philipp Wich < jow @ openwrt . org >
2015-01-16 22:38:38 +00:00
Copyright 2011 Manuel Munz < freifunk at somakoma dot de >
Licensed to the public under the Apache License 2.0.
2010-12-17 02:14:28 +00:00
-%>
2011-11-09 18:12:25 +00:00
< %
local i = 1
%>
2010-12-17 02:14:28 +00:00
< %+header%>
2011-11-09 18:12:25 +00:00
2015-10-06 11:29:43 +00:00
< h2 name = "content" > < %:Interfaces%>< / h2 >
2011-11-09 18:12:25 +00:00
2013-03-16 18:08:13 +00:00
< div id = "togglebuttons" > < / div >
2011-11-09 18:12:25 +00:00
< fieldset class = "cbi-section" >
< legend > < %:Overview of interfaces where OLSR is running%>< / legend >
2018-05-28 12:57:54 +00:00
< div class = "table cbi-section-table" >
< div class = "tr" >
< div class = "th cbi-section-table-cell" > < %:Interface%>< / div >
< div class = "th cbi-section-table-cell" > < %:State%>< / div >
< div class = "th cbi-section-table-cell" > < %:MTU%>< / div >
< div class = "th cbi-section-table-cell" > < %:WLAN%>< / div >
< div class = "th cbi-section-table-cell" > < %:Source address%>< / div >
< div class = "th cbi-section-table-cell" > < %:Netmask%>< / div >
< div class = "th cbi-section-table-cell" > < %:Broadcast address%>< / div >
< / div >
2011-11-09 18:12:25 +00:00
< % for k, iface in ipairs(iface) do %>
2018-05-28 12:57:54 +00:00
< div class = "tr cbi-section-table-row cbi-rowstyle-<%=i%> proto-<%=iface.proto%>" >
< div class = "td cbi-section-table-cell" > < %=iface.name%>< / div >
2018-11-05 10:44:53 +00:00
< div class = "td cbi-section-table-cell" > < %=iface.olsrInterface.up and luci.i18n.translate('up') or luci.i18n.translate('down')%>< / div >
< div class = "td cbi-section-table-cell" > < %=iface.olsrInterface.mtu%>< / div >
< div class = "td cbi-section-table-cell" > < %=iface.olsrInterface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%>< / div >
< div class = "td cbi-section-table-cell" > < %=iface.olsrInterface.ipAddress%>< / div >
< div class = "td cbi-section-table-cell" > < %=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Netmask%>< / div >
< div class = "td cbi-section-table-cell" > < %=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Broadcast or iface.olsrInterface.ipv6Multicast%>< / div >
2018-05-28 12:57:54 +00:00
< / div >
2011-11-13 12:34:09 +00:00
< % i = ((i % 2) + 1)
2011-11-09 18:12:25 +00:00
end %>
2018-05-28 12:57:54 +00:00
< / div >
2011-11-09 18:12:25 +00:00
< / fieldset >
2013-03-16 18:08:13 +00:00
< %+status-olsr/common_js%>
2010-12-17 02:14:28 +00:00
< %+footer%>
2013-03-16 18:08:13 +00:00