<% local dsp = require "luci.dispatcher" local utl = require "luci.util" local uci = require "luci.model.uci" local nws = {} uci.inst_state:foreach("network", "interface", function(s) nws[#nws+1] = s end) if uci.inst_state:get("network", "lan", "_ipchanged") and uci.inst_state:revert("network", "lan", "_ipchanged") then include("niu/network/warn_ip_change") end %>
Status:
<% for _, v in ipairs(nws) do if v[".name"] ~= "loopback" then %> <% end end %>
<%=v[".name"]%><%=v.ipaddr%>