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 <span class=
"ifacebadge"><%=net:name()%
>:
17 for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do
18 if not iface:is_bridge() then
21 <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" />
23 <% if empty then %
><em><%:(no interfaces attached)%
></em><% end %
>