From: Jo-Philipp Wich Date: Sun, 6 Feb 2011 04:12:41 +0000 (+0000) Subject: libs/core: fix lookups bridge interface -> network in luci.model.network X-Git-Tag: 0.11.0~2290 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=b818354c9420fe8a9bc811352c4a1f21474a2b23 libs/core: fix lookups bridge interface -> network in luci.model.network --- diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index 129f70d71..68ad04fae 100644 --- a/libs/core/luasrc/model/network.lua +++ b/libs/core/luasrc/model/network.lua @@ -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