mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Rework special macs into source macs and use them into the footer
This commit is contained in:
parent
ffc97ef922
commit
4f0debccd5
10 changed files with 101 additions and 97 deletions
|
|
@ -20,7 +20,6 @@ local sortColumn = _GET["sortColumn"]
|
|||
local sortOrder = _GET["sortOrder"]
|
||||
|
||||
local vlan = _GET["vlan"]
|
||||
local host_macs_only = _GET["host_macs_only"]
|
||||
local manufacturer = _GET["manufacturer"]
|
||||
|
||||
local sortPrefs = "unknown_devices"
|
||||
|
|
@ -56,12 +55,6 @@ else
|
|||
tablePreferences("rows_number", perPage)
|
||||
end
|
||||
|
||||
if isEmptyString(host_macs_only) == false then
|
||||
if(host_macs_only == "true") then host_macs_only = true else host_macs_only = false end
|
||||
else
|
||||
host_macs_only = false
|
||||
end
|
||||
|
||||
interface.select(ifname)
|
||||
|
||||
to_skip = (currentPage-1) * perPage
|
||||
|
|
@ -89,8 +82,8 @@ end
|
|||
-- First data source: memory
|
||||
local macs_stats = interface.getMacsInfo(nil, nil, nil, nil,
|
||||
tonumber(vlan),
|
||||
true --[[ skip special macs ]],
|
||||
true, nil--[[manufacturer]], tonumber(host_pools_utils.DEFAULT_POOL_ID), true--[[effectiveMacsOnly]])
|
||||
true --[[ sourceMacsOnly ]],
|
||||
true --[[ hostMacsOnly ]], nil--[[manufacturer]], tonumber(host_pools_utils.DEFAULT_POOL_ID))
|
||||
|
||||
if (macs_stats ~= nil) then
|
||||
macs_stats = macs_stats.macs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue