<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: index.htm 6619 2010-12-05 15:02:44Z soma $ -%> <%+header%>

<%:OLSR connections%>

<%:Overview of currently established OLSR connections%>


<% for k, link in ipairs(links) do local color = "#bb3333" link.Cost = tonumber(link.Cost) or 0 if link.Cost == 0 then color = "#bb3333" elseif link.Cost < 4 then color = "#00cc00" elseif link.Cost < 10 then color = "#ffcb05" elseif link.Cost < 100 then color = "#ff6600" end defaultgw_color = "" if link.defaultgw == 1 then defaultgw_color = "#ffff99" end %> <% end %>
<%:Neighbour IP%> <%:Hostname%> <%:Local interface IP%> <%:Device%> LQ NLQ ETX
/cgi-bin-status.html"><%=link["Remote IP"]%> /cgi-bin-status.html"><%=link["Hostname"]%> <%=link["Local IP"]%> <%=link["Local Device"]%> <%=link.LQ%> <%=link.NLQ%> <%=string.format("%.3f", link.Cost)%>

<%:Legend%>:

<%+footer%>