diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-06 04:12:41 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-06 04:12:41 +0000 |
commit | b818354c9420fe8a9bc811352c4a1f21474a2b23 (patch) | |
tree | 54e4602d5f6ecfa3edf40fc6afc62f441d62a680 /libs/core | |
parent | c473bb1d75ff7faa07b89db53b7d8dd526e91904 (diff) |
libs/core: fix lookups bridge interface -> network in luci.model.network
Diffstat (limited to 'libs/core')
-rw-r--r-- | libs/core/luasrc/model/network.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |