mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Match AM notifications against Host Pools
This commit is contained in:
parent
70831b9e01
commit
6886186418
4 changed files with 60 additions and 59 deletions
|
|
@ -382,13 +382,14 @@ end
|
|||
|
||||
-- @param member a valid pool member
|
||||
-- @return The pool_id found for the currently selected host.
|
||||
-- `member` here is IGNORED: argument is just kept to
|
||||
-- preserve method fingerprint.
|
||||
function host_pools:get_pool_id(member)
|
||||
-- OVERRIDE
|
||||
local res = host.getPoolId()
|
||||
local address = member
|
||||
local vlan = 0 -- TODO
|
||||
local is_mac = false -- TODO
|
||||
|
||||
if res and res["host_pool_id"] then return res["host_pool_id"] end
|
||||
local res = interface.findMemberPool(address, vlan, is_mac)
|
||||
|
||||
if res and res.pool_id then return res.pool_id end
|
||||
|
||||
return host_pools.DEFAULT_POOL_ID
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue