mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Add rest/v1/get/host/active.lua REST API (#3954)
This commit is contained in:
parent
0b27f52b4a
commit
522fc65b55
2 changed files with 277 additions and 1 deletions
|
|
@ -36,6 +36,11 @@ end
|
|||
|
||||
interface.select(ifid)
|
||||
|
||||
if not isEmptyString(_GET["sortColumn"]) then
|
||||
-- Backward compatibility
|
||||
_GET["sortColumn"] = "column_" .. _GET["sortColumn"]
|
||||
end
|
||||
|
||||
-- This is using GET parameters to handle:
|
||||
--
|
||||
-- Pagination:
|
||||
|
|
@ -90,7 +95,7 @@ for _key, value in ipairs(flows_stats) do
|
|||
|
||||
local info = interface.getHostInfo(value["cli.ip"], value["cli.vlan"])
|
||||
if info then
|
||||
client["is_broadcast"] = info.broadcast_domain_host
|
||||
client["is_broadcast_domain"] = info.broadcast_domain_host
|
||||
client["is_dhcp"] = info.dhcpHost
|
||||
client["is_blacklisted"] = info.is_blacklisted
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue