Allows host pools to be configured for view interfaces

This commit is contained in:
Simone Mainardi 2019-08-06 10:23:39 +02:00
parent d948c8fe6a
commit abd7041dd4
2 changed files with 4 additions and 10 deletions

View file

@ -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