Added SNMP info to historical flows (#6819)

This commit is contained in:
MatteoBiscosi 2022-08-22 11:35:18 +02:00
parent 0619cd2991
commit 8adf573e49
3 changed files with 38 additions and 0 deletions

View file

@ -5543,6 +5543,14 @@ end
-- ##############################################
function format_utils.formatSNMPInterface(snmpdevice, interface_index)
local interface_name = format_portidx_name(snmpdevice, interface_index)
return string.format('%s (%s)', interface_index, (interface_name))
end
-- ##############################################
function map_score_to_severity(score)
if score ~= nil then
return ntop.mapScoreToSeverity(score)