mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implements new flow drill-down criteria: exporter ip and in/out interfaces
Implements #1326
This commit is contained in:
parent
499b03bf9b
commit
85da10af61
15 changed files with 267 additions and 19 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue