2 Copyright
2008 Steven Barth
<steven@midlink.org
>
3 Copyright
2008 Jo-Philipp Wich
<jow@openwrt.org
>
4 Copyright
2011 Manuel Munz
<freifunk at somakoma dot de
>
5 Licensed to the public under the Apache License
2.0.
14 <h2><a id=
"content" name=
"content"><%:Interfaces%
></a></h2>
16 <div id=
"togglebuttons"></div>
18 <fieldset class=
"cbi-section">
19 <legend><%:Overview of interfaces where OLSR is running%
></legend>
21 <table class=
"cbi-section-table">
23 <th class=
"cbi-section-table-cell"><%:Interface%
></th>
24 <th class=
"cbi-section-table-cell"><%:State%
></th>
25 <th class=
"cbi-section-table-cell"><%:MTU%
></th>
26 <th class=
"cbi-section-table-cell"><%:WLAN%
></th>
27 <th class=
"cbi-section-table-cell"><%:Source address%
></th>
28 <th class=
"cbi-section-table-cell"><%:Netmask%
></th>
29 <th class=
"cbi-section-table-cell"><%:Broadcast address%
></th>
32 <% for k, iface in ipairs(iface) do %
>
34 <tr class=
"cbi-section-table-row cbi-rowstyle-<%=i%> proto-<%=iface.proto%>">
35 <td class=
"cbi-section-table-cell"><%=iface.name%
></td>
36 <td class=
"cbi-section-table-cell"><%=iface.state%
></td>
37 <td class=
"cbi-section-table-cell"><%=iface.olsrMTU%
></td>
38 <td class=
"cbi-section-table-cell"><%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%
></td>
39 <td class=
"cbi-section-table-cell"><%=iface.ipv4Address or iface.ipv6Address%
></td>
40 <td class=
"cbi-section-table-cell"><%=iface.netmask%
></td>
41 <td class=
"cbi-section-table-cell"><%=iface.broadcast or iface.multicast%
></td>
47 <%+status-olsr/common_js%
>