From 9e7557b60638cc2981f1a837ef0708a1677632b9 Mon Sep 17 00:00:00 2001 From: pmelange Date: Mon, 5 Nov 2018 11:44:53 +0100 Subject: [PATCH] luci-app-olsr: convert interfaces.htm to new json plugin Signed-off-by: pmelange --- .../luasrc/view/status-olsr/interfaces.htm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm index e3ccd0c23d..7506f07029 100644 --- a/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm +++ b/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm @@ -33,12 +33,12 @@ local i = 1
<%=iface.name%>
-
<%=iface.state%>
-
<%=iface.olsrMTU%>
-
<%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%>
-
<%=iface.ipv4Address or iface.ipv6Address%>
-
<%=iface.netmask%>
-
<%=iface.broadcast or iface.multicast%>
+
<%=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 %> -- 2.30.2