Store and restore local broadcast domain hosts from their mac key

Charts now display the mac based data when browsing a local broadcast domain host.
This is an important change to avoid mixing historical information of different hosts in a dynamic network.

More changes will follow to migrate other historical elements, like flows, alerts and top stats.
This commit is contained in:
emanuele-f 2019-02-21 18:37:57 +01:00
parent 8f1c8831bc
commit dd37cafa12
10 changed files with 146 additions and 38 deletions

View file

@ -59,6 +59,7 @@ end
-- ################################################################
-- TODO delete HOST_V4_BY_MAC_SERIALIZED_KEY and HOST_V6_BY_MAC_SERIALIZED_KEY as well
local function delete_host_redis_keys(interface_id, host_info)
local status = "OK"
local hostkey = hostinfo2hostkey(host_info, nil, true)