Fixes l7 protocol not correctly calculated for exporters

This commit is contained in:
Matteo Biscosi 2024-11-14 16:33:42 +01:00
parent e9ef30ea98
commit 9dab48aedf
2 changed files with 159 additions and 150 deletions

View file

@ -888,7 +888,7 @@ function getExportersUnifiedStats()
if not unified_exporters[exporter_ip] then
unified_exporters[exporter_ip] = {}
end
local ports_table = interface.getFlowDeviceInfoByIP(exporter_ip)
local ports_table = interface.getFlowDeviceInfoByIP(exporter_ip, true)
for _, ports in pairs(ports_table) do
for port_idx, port_info in pairs(ports) do
if not unified_exporters[exporter_ip][port_idx] then