mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implement flow status and unidirectional flows filters
This commit is contained in:
parent
1854b884a2
commit
b7e0669c33
7 changed files with 149 additions and 13 deletions
|
|
@ -29,6 +29,8 @@ network_id = _GET["network"]
|
|||
vhost = _GET["vhost"]
|
||||
flowhosts_type = _GET["flowhosts_type"]
|
||||
ipversion = _GET["version"]
|
||||
traffic_type = _GET["traffic_type"]
|
||||
flow_status = _GET["flow_status"]
|
||||
|
||||
-- System host parameters
|
||||
hosts = _GET["hosts"]
|
||||
|
|
@ -116,6 +118,24 @@ if not isEmptyString(flowhosts_type) then
|
|||
end
|
||||
end
|
||||
|
||||
if not isEmptyString(traffic_type) then
|
||||
if traffic_type == "unicast" then
|
||||
pageinfo["unicast"] = true
|
||||
else
|
||||
pageinfo["unicast"] = false
|
||||
end
|
||||
|
||||
pageinfo["unidirectional"] = true
|
||||
end
|
||||
|
||||
if not isEmptyString(flow_status) then
|
||||
if flow_status == "normal" then
|
||||
pageinfo["alertedFlows"] = false
|
||||
else
|
||||
pageinfo["alertedFlows"] = true
|
||||
end
|
||||
end
|
||||
|
||||
if not isEmptyString(ipversion) then
|
||||
pageinfo["ipVersion"] = tonumber(ipversion)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue