openwrt-19.07: merge current master branch
[oweals/luci.git] / modules / luci-compat / luasrc / model / network.lua
index a36a23f321b25375cbb496c35133e6d65815b3d3..c8b62f29020927b11b38c4d2a7aaaa736c6c9bcf 100644 (file)
@@ -1255,8 +1255,8 @@ function protocol.get_interface(self)
        end
 end
 
-function protocol.get_interfaces(self)
-       if self:is_bridge() or (self:is_virtual() and not self:is_floating()) then
+function protocol.get_interfaces(self, ignore_bridge_state)
+       if ignore_bridge_state or self:is_bridge() or (self:is_virtual() and not self:is_floating()) then
                local ifaces = { }
 
                local ifn