mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
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:
parent
a03c2158d8
commit
5ade224d85
34 changed files with 1056 additions and 229 deletions
|
|
@ -897,7 +897,7 @@ function graph_utils.poolDropdown(ifId, pool_id, exclude)
|
|||
local output = {}
|
||||
exclude = exclude or {}
|
||||
|
||||
for _,pool in ipairs(host_pools_utils.getPoolsList(ifId)) do
|
||||
for _,pool in ipairs(host_pools_utils.getPoolsList()) do
|
||||
if (not exclude[pool.id]) or (pool.id == pool_id) then
|
||||
output[#output + 1] = '<option value="' .. pool.id .. '"'
|
||||
|
||||
|
|
@ -908,7 +908,7 @@ function graph_utils.poolDropdown(ifId, pool_id, exclude)
|
|||
local limit_reached = false
|
||||
|
||||
if not ntop.isEnterpriseM() then
|
||||
local n_members = table.len(host_pools_utils.getPoolMembers(ifId, pool.id) or {})
|
||||
local n_members = table.len(host_pools_utils.getPoolMembers(pool.id) or {})
|
||||
|
||||
if n_members >= host_pools_utils.LIMITED_NUMBER_POOL_MEMBERS then
|
||||
limit_reached = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue