mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +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
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue