Implements C++ HostPool getPoolByName

Implements #5409
This commit is contained in:
Simone Mainardi 2021-05-25 11:42:16 +02:00
parent b06ea2e8a0
commit 42c82ba8f4
6 changed files with 44 additions and 6 deletions

View file

@ -20,8 +20,8 @@ local pools = {}
-- ##############################################
-- A default pool id value associated to any member without pools
pools.DEFAULT_POOL_ID = 0
pools.DEFAULT_POOL_NAME = "Default"
pools.DEFAULT_POOL_ID = 0 -- Keep in sync with ntop_defines.h NO_HOST_POOL_ID
pools.DEFAULT_POOL_NAME = "Default" -- Keep in sync with ntop_defines.h DEFAULT_POOL_NAME
if ntop.isnEdge() then
-- Compatibility with nEdge pools