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

@ -273,7 +273,7 @@ function ts_dump.run_5min_dump(_ifname, ifstats, config, when, time_threshold, s
local instant = host_point.instant
if instant >= min_instant then
ts_dump.host_update_rrd(instant, hostname, host_point, ifstats, verbose, config)
ts_dump.host_update_rrd(instant, host_ts.idkey, host_point, ifstats, verbose, config)
end
end
end