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

@ -19,7 +19,7 @@ local host_pools_utils = nil
local pool_names = nil
if captivePortal then
local host_pools_utils = require "host_pools_utils"
local names = host_pools_utils.getPoolsList(getInterfaceId(ifname), false)
local names = host_pools_utils.getPoolsList(false)
pool_names = {}
for _, p in pairs(names) do
pool_names[tonumber(p["id"])] = p["name"]