Do not trigger no_if_activity for pcap or db dump anlysis

This commit is contained in:
Alfredo Cardigliano 2024-07-18 13:59:09 +00:00
parent 7724d22990
commit 60c6d0c9a7

View file

@ -24,6 +24,11 @@ local script = {
-- #################################################################
local function check_interface_activity(params)
if interface.isPcapDumpInterface() or interface.isDatabaseViewInterface() then
return -- Not a live interface, skip this check
end
-- Get total number of packets, flows and interface id
local num_packets = params.entity_info.eth.packets
local num_flows = params.entity_info.stats.new_flows -- .new_flows keep the cumulative total, .flows is just a gauge