Implement flow status and unidirectional flows filters

This commit is contained in:
emanuele-f 2017-03-30 13:01:54 +02:00
parent 1854b884a2
commit b7e0669c33
7 changed files with 149 additions and 13 deletions

View file

@ -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