Implements Mac stats/data reset and reset at midnight (#2326)

* Host data/stats delete improvements

* Rework mac counters and implemtent mac stats/data reset

* Implement stats reset at midnight

* Add missing files
This commit is contained in:
Emanuele Faranda 2019-01-21 16:27:12 +00:00 committed by simonemainardi
parent 2755b18dee
commit 1bf7da7ef7
25 changed files with 493 additions and 117 deletions

View file

@ -1615,7 +1615,7 @@ function hostinfo2hostkey(host_info,host_type,show_vlan)
end
if(((host_info["vlan"] ~= nil) and (host_info["vlan"] ~= 0))
or ((show_vlan ~= nil) and show_vlan)) then
or ((show_vlan ~= nil) and show_vlan and (host_info["vlan"] ~= nil))) then
rsp = rsp..'@'..tostring(host_info["vlan"])
end