Changed format and position of Flow Verdict information

This commit is contained in:
Matteo Biscosi 2021-09-08 15:47:16 +02:00
parent f08b66fa01
commit 120cd82c39
7 changed files with 32 additions and 3 deletions

View file

@ -22,6 +22,23 @@ end
-- #######################
local flow_verdict_mapping = {
"Pass", -- 1
"Drop", -- 2
}
-- #######################
function parseFlowVerdict(flow_verdict)
if flow_verdict_mapping[flow_verdict] then
return (flow_verdict .. " (" .. flow_verdict_mapping[flow_verdict] .. ")")
end
return flow_verdict
end
-- #######################
function formatInterfaceId(id, idx, snmpdevice)
if(id == 65535) then
return("Unknown")