libs/core: fix lookups bridge interface -> network in luci.model.network
This commit is contained in:
parent
c473bb1d75
commit
b818354c94
1 changed files with 3 additions and 1 deletions
|
@ -852,7 +852,9 @@ function interface.get_network(self)
|
|||
if not self.network then
|
||||
local net
|
||||
for _, net in ipairs(_M:get_networks()) do
|
||||
if net:contains_interface(self.ifname) then
|
||||
if net:contains_interface(self.ifname) or
|
||||
net:ifname() == self.ifname
|
||||
then
|
||||
self.network = net
|
||||
return net
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue