libs/core: non-bridge handling fix in network model
This commit is contained in:
parent
3311da13e7
commit
47f011b947
1 changed files with 15 additions and 18 deletions
|
@ -791,6 +791,7 @@ function network.get_interfaces(self)
|
||||||
ifaces[#ifaces+1] = nfs[ifn]
|
ifaces[#ifaces+1] = nfs[ifn]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self:is_bridge() then
|
||||||
local num = { }
|
local num = { }
|
||||||
local wfs = { }
|
local wfs = { }
|
||||||
uci_r:foreach("wireless", "wifi-iface",
|
uci_r:foreach("wireless", "wifi-iface",
|
||||||
|
@ -806,11 +807,7 @@ function network.get_interfaces(self)
|
||||||
|
|
||||||
for ifn in utl.kspairs(wfs) do
|
for ifn in utl.kspairs(wfs) do
|
||||||
ifaces[#ifaces+1] = wfs[ifn]
|
ifaces[#ifaces+1] = wfs[ifn]
|
||||||
|
end
|
||||||
-- only bridges may cover more than one interface
|
|
||||||
--if not self:is_bridge() then
|
|
||||||
-- break
|
|
||||||
--end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return ifaces
|
return ifaces
|
||||||
|
|
Loading…
Reference in a new issue