Adds an Active Flows page to the AS details

This commit is contained in:
Simone Mainardi 2017-10-09 12:54:06 +02:00
parent 4e4020a480
commit d5e36e87f4
8 changed files with 258 additions and 33 deletions

View file

@ -32,8 +32,7 @@ local deviceIP = _GET["deviceIP"]
local inIfIdx = _GET["inIfIdx"]
local outIfIdx = _GET["outIfIdx"]
local client_asn = _GET["client_asn"]
local server_asn = _GET["server_asn"]
local asn = _GET["asn"]
local vhost = _GET["vhost"]
local flowhosts_type = _GET["flowhosts_type"]
@ -170,12 +169,8 @@ if not isEmptyString(deviceIP) then
end
end
if not isEmptyString(client_asn) then
pageinfo["clientASNFilter"] = tonumber(client_asn)
end
if not isEmptyString(server_asn) then
pageinfo["serverASNFilter"] = tonumber(server_asn)
if not isEmptyString(asn) then
pageinfo["asnFilter"] = tonumber(asn)
end
local flows_stats = interface.getFlowsInfo(host, pageinfo)