4 local value = self:formvalue(section)
5 if not value or value == "-" then
6 value = self:cfgvalue(section) or self.default
9 local nwm = require "luci.model.network".init()
10 local net = nwm:get_network(value)
14 <div style="padding:0.5em">
15 <span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
18 for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do
19 if not iface:is_bridge() then
22 <img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" />
24 <% if empty then %><em><%:(no interfaces attached)%></em><% end %>