mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Update FE dropdown menu entries. (#6532)
This commit is contained in:
parent
013d9f6604
commit
185cc8616f
1 changed files with 17 additions and 0 deletions
|
|
@ -1586,6 +1586,23 @@ end
|
|||
local function printFlowDevicesFilterDropdown(base_url, page_params)
|
||||
local snmp_cached_dev = require "snmp_cached_dev"
|
||||
local flowdevs = interface.getFlowDevices()
|
||||
|
||||
local observationPointId = ntop.getUserObservationPointId() or 0
|
||||
|
||||
if observationPointId ~= 0 then
|
||||
local obs_info = interface.getObsPointsInfo()["ObsPoints"]
|
||||
local exporter_list = {}
|
||||
|
||||
for k,v in ipairs(obs_info) do
|
||||
if (v.obs_point == observationPointId) then
|
||||
exporter_list = v.exporter_list
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
flowdevs = exporter_list
|
||||
end
|
||||
|
||||
local ordering_fun = pairsByKeys
|
||||
|
||||
if flowdevs == nil then flowdevs = {} end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue