Implements traffic profile filter in the active flows page (#2598)

This commit is contained in:
Alfredo Cardigliano 2019-05-20 12:43:51 +02:00
parent 74824aa148
commit 0b5668be6d
8 changed files with 69 additions and 1 deletions

View file

@ -50,6 +50,7 @@ local ipversion = _GET["version"]
local traffic_type = _GET["traffic_type"]
local flow_status = _GET["flow_status"]
local tcp_state = _GET["tcp_flow_state"]
local traffic_profile = _GET["traffic_profile"]
-- System host parameters
local hosts = _GET["hosts"]
@ -119,6 +120,10 @@ if category ~= nil and category ~= "" then
pageinfo["l7categoryFilter"] = interface.getnDPICategoryId(category)
end
if traffic_profile ~= nil then
pageinfo["trafficProfileFilter"] = traffic_profile
end
if not isEmptyString(flowhosts_type) then
if flowhosts_type == "local_origin_remote_target" then
pageinfo["clientMode"] = "local"