mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Changed format and position of Flow Verdict information
This commit is contained in:
parent
f08b66fa01
commit
120cd82c39
7 changed files with 32 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue