Implements new flow drill-down criteria: exporter ip and in/out interfaces

Implements #1326
This commit is contained in:
Simone Mainardi 2017-07-20 19:54:11 +02:00
parent 499b03bf9b
commit 85da10af61
15 changed files with 267 additions and 19 deletions

View file

@ -27,6 +27,11 @@ local port = _GET["port"]
local application = _GET["application"]
local network_id = _GET["network"]
local vlan = _GET["vlan"]
local deviceIP = _GET["deviceIP"]
local inIfIdx = _GET["inIfIdx"]
local outIfIdx = _GET["outIfIdx"]
local vhost = _GET["vhost"]
local flowhosts_type = _GET["flowhosts_type"]
local ipversion = _GET["version"]
@ -148,6 +153,18 @@ if not isEmptyString(vlan) then
pageinfo["vlanIdFilter"] = tonumber(vlan)
end
if not isEmptyString(deviceIP) then
pageinfo["deviceIpFilter"] = deviceIP
if not isEmptyString(inIfIdx) then
pageinfo["inIndexFilter"] = tonumber(inIfIdx)
end
if not isEmptyString(outIfIdx) then
pageinfo["outIndexFilter"] = tonumber(outIfIdx)
end
end
local flows_stats = interface.getFlowsInfo(host, pageinfo)
local total = flows_stats["numFlows"]
flows_stats = flows_stats["flows"]