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

@ -25,6 +25,15 @@ local ipversion = _GET["version"]
local ipversion_filter = ""
local vlan = _GET["vlan"]
local vlan_filter = ""
-- remote exporters address and interfaces
local deviceIP = _GET["deviceIP"]
local inIfIdx = _GET["inIfIdx"]
local outIfIdx = _GET["outIfIdx"]
local deviceIP_filter = ""
local inIfIdx_filter = ""
local outIfIdx_filter = ""
local traffic_type = _GET["traffic_type"]
local traffic_type_filter = ""
local flow_status = _GET["flow_status"]
@ -108,6 +117,21 @@ if(ipversion ~= nil) then
ipversion_filter = '<span class="glyphicon glyphicon-filter"></span>'
end
if(deviceIP ~= nil) then
page_params["deviceIP"] = deviceIP
deviceIP_filter = '<span class="glyphicon glyphicon-filter"></span>'
end
if(inIfIdx ~= nil) then
page_params["inIfIdx"] = inIfIdx
inIfIdx_filter = '<span class="glyphicon glyphicon-filter"></span>'
end
if(outIfIdx ~= nil) then
page_params["outIfIdx"] = outIfIdx
outIfIdx_filter = '<span class="glyphicon glyphicon-filter"></span>'
end
if(vlan ~= nil) then
page_params["vlan"] = vlan
vlan_filter = '<span class="glyphicon glyphicon-filter"></span>'
@ -289,6 +313,10 @@ if ifstats.vlan then
printVLANFilterDropdown(base_url, vlan_params)
print[[</div>']]
end
if ntop.isPro() and interface.isPacketInterface() == false then
printFlowDevicesFilterDropdown(base_url, vlan_params)
end
-- end buttons
print(" ],\n")