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
if alias then
old_ifs[1] = '@' .. alias
else
- for _, i in ipairs(net:get_interfaces() or { net:get_interface() }) do
+ for _, i in ipairs(net:get_interfaces(true) or { net:get_interface() }) do
old_ifs[#old_ifs+1] = i:name()
end
end