mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
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:
parent
8f1c8831bc
commit
dd37cafa12
10 changed files with 146 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue