mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added probes filter to host page (#5157)
This commit is contained in:
parent
df906622eb
commit
4e693dc9f1
9 changed files with 109 additions and 28 deletions
|
|
@ -1526,26 +1526,9 @@ local function printFlowDevicesFilterDropdown(base_url, page_params)
|
|||
|
||||
if flowdevs == nil then flowdevs = {} end
|
||||
|
||||
local devips = {}
|
||||
local devips = getProbesName(flowdevs)
|
||||
local devips_order = ntop.getPref("ntopng.prefs.flow_table_probe_order") == "1" -- Order by Probe Name
|
||||
|
||||
for dip, _ in pairsByValues(flowdevs, asc) do
|
||||
local cached_device_name = snmp_cached_dev:create(dip)
|
||||
|
||||
if cached_device_name then
|
||||
cached_device_name = cached_device_name["name"]
|
||||
else
|
||||
local hinfo = hostkey2hostinfo(dip)
|
||||
local resname = hostinfo2label(hinfo)
|
||||
|
||||
if not isEmptyString(resname) then
|
||||
cached_device_name = resname
|
||||
end
|
||||
end
|
||||
|
||||
devips[dip] = cached_device_name
|
||||
end
|
||||
|
||||
if devips_order then
|
||||
ordering_fun = pairsByValues
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue