projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c473bb1
)
libs/core: fix lookups bridge interface -> network in luci.model.network
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 6 Feb 2011 04:12:41 +0000
(
04:12
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 6 Feb 2011 04:12:41 +0000
(
04:12
+0000)
libs/core/luasrc/model/network.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/model/network.lua
b/libs/core/luasrc/model/network.lua
index 129f70d71ec567c0a344ec8eba8fefc61d905a49..68ad04fae09e99837a4baeef44ef6e5fa867d2d4 100644
(file)
--- 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