mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Allows host pools to be configured for view interfaces
This commit is contained in:
parent
d948c8fe6a
commit
abd7041dd4
2 changed files with 4 additions and 10 deletions
|
|
@ -439,11 +439,9 @@ function host_pools_utils.emptyPools()
|
|||
local ifid = getInterfaceId(ifname)
|
||||
local ifstats = interface.getStats()
|
||||
|
||||
if not ifstats.isView then
|
||||
local pools_list = host_pools_utils.getPoolsList(ifid)
|
||||
for _, pool in pairs(pools_list) do
|
||||
host_pools_utils.emptyPool(ifid, pool["id"])
|
||||
end
|
||||
local pools_list = host_pools_utils.getPoolsList(ifid)
|
||||
for _, pool in pairs(pools_list) do
|
||||
host_pools_utils.emptyPool(ifid, pool["id"])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -454,9 +452,7 @@ function host_pools_utils.initPools()
|
|||
local ifstats = interface.getStats()
|
||||
|
||||
-- Note: possible shapers are initialized in shaper_utils::initShapers
|
||||
if not ifstats.isView then
|
||||
initInterfacePools(ifid)
|
||||
end
|
||||
initInterfacePools(ifid)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue