mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Initial work for host data reset
This commit is contained in:
parent
28e87d93bc
commit
8cdf051d77
8 changed files with 89 additions and 40 deletions
|
|
@ -113,10 +113,15 @@ end
|
|||
-- ################################################################
|
||||
|
||||
local function _delete_host(interface_id, host_info)
|
||||
local old_ifname = interface.getStats().name
|
||||
interface.select(getInterfaceName(interface_id))
|
||||
|
||||
interface.resetHostData(hostinfo2hostkey(host_info))
|
||||
local h_ts = delete_host_timeseries_data(interface_id, host_info)
|
||||
local h_rk = delete_host_redis_keys(interface_id, host_info)
|
||||
local h_db = delete_host_mysql_flows(interface_id, host_info)
|
||||
|
||||
interface.select(old_ifname)
|
||||
return {delete_host_timeseries_data = h_ts, delete_host_redis_keys = h_rk, delete_host_mysql_flows = h_db}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue