<% local dsp = require "luci.dispatcher" local utl = require "luci.util" local str = require "luci.store" local nws = {} str.uci_state:foreach("network", "interface", function(s) nws[#nws+1] = s end) local function cmp(a, b) return (a.order or 100) < (b.order or 100) end %>
Status:
<% for _, v in ipairs(nws) do if v[".name"] ~= "loopback" then %> <% end end %>
<%=v[".name"]%><%=v.ipaddr%>