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

@ -340,6 +340,12 @@ function printSeries(options, tags, start_time, base_url, params)
local needs_separator = false
local separator_label = nil
-- TODO remove after proper migration of flows to the new schema
if params.host then
tags = table.clone(tags)
tags.host = params.fixme_host
end
for _, serie in ipairs(series) do
if (have_nedge and serie.nedge_exclude) or (not have_nedge and serie.nedge_only) then
goto continue