Implements global host pools

Implements #4086

Refactors host pools to global

Implements host pools migration

Migration fixes

nEdge changes for host pools migration

Create README.host_pools_migration.md
This commit is contained in:
Simone Mainardi 2020-07-01 11:56:35 +02:00
parent a03c2158d8
commit 5ade224d85
34 changed files with 1056 additions and 229 deletions

View file

@ -139,7 +139,7 @@ function http_bridge_conf_utils.configureBridge()
end
-- must leave it here as well to make sure the C part has updated with the new pools
interface.reloadHostPools()
ntop.reloadHostPools()
-- SETUP ASSOCIATIONS
for member, info in pairs(rsp["associations"] or {}) do
@ -154,7 +154,7 @@ function http_bridge_conf_utils.configureBridge()
host_pools_utils.traceHostPoolEvent(TRACE_ERROR, ifname..": pool: "..pool.. " not existing. Unable to set association with: "..member)
else
if connectivity == "pass" then
if host_pools_utils.addPoolMember(ifid, pool_id, member) == true then
if host_pools_utils.addPoolMember(pool_id, member) == true then
host_pools_utils.traceHostPoolEvent(TRACE_NORMAL, ifname..": member "..member.. " successfully associated to pool: "..pool)
else
host_pools_utils.traceHostPoolEvent(TRACE_ERROR, ifname..": Unable to associate member "..member.. " to pool: "..pool)
@ -164,7 +164,7 @@ function http_bridge_conf_utils.configureBridge()
end
end
interface.reloadHostPools()
ntop.reloadHostPools()
end
end