libs/web: align interface related widgets to changed network model api
[project/luci.git] / libs / web / luasrc / view / cbi / network_netinfo.htm
index 19e98c0..89389f8 100644 (file)
@@ -15,7 +15,7 @@
        <span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
                <%
                        local empty = true
-                       for _, iface in ipairs(net:get_interfaces()) do
+                       for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do
                                if not iface:is_bridge() then
                                        empty = false
                 %>