mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Refactors old host_pools_utils to nEdge-only host_pools_nedge
This commit is contained in:
parent
012ef619da
commit
c623f21ba0
17 changed files with 166 additions and 166 deletions
|
|
@ -15,11 +15,11 @@ local sortColumn = _GET["sortColumn"]
|
|||
local sortOrder = _GET["sortOrder"]
|
||||
local captivePortal = _GET["captive_portal_users"]
|
||||
|
||||
local host_pools_utils = nil
|
||||
local host_pools_nedge = nil
|
||||
local pool_names = nil
|
||||
if captivePortal then
|
||||
local host_pools_utils = require "host_pools_utils"
|
||||
local names = host_pools_utils.getPoolsList(false)
|
||||
local host_pools_nedge = require "host_pools_nedge"
|
||||
local names = host_pools_nedge.getPoolsList(false)
|
||||
pool_names = {}
|
||||
for _, p in pairs(names) do
|
||||
pool_names[tonumber(p["id"])] = p["name"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue