From b818354c9420fe8a9bc811352c4a1f21474a2b23 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 6 Feb 2011 04:12:41 +0000 Subject: libs/core: fix lookups bridge interface -> network in luci.model.network --- libs/core/luasrc/model/network.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3