Remove host macs and show source macs instead

This commit is contained in:
emanuele-f 2018-03-23 14:42:21 +01:00
parent 3a79a06665
commit 02cec8a2be
14 changed files with 76 additions and 114 deletions

View file

@ -54,14 +54,9 @@ else
end
local source_macs_only = false
local host_macs_only = false
local dhcp_macs_only = false
if devices_mode == "host_macs_only" then
-- The statement below has been commented as for hosts mac we mean hosts that
-- have sent ARP reqeusts and thus that are real hosts, NOT that they are L3 hosts
-- as this is a L2 script
-- host_macs_only = true
if devices_mode == "source_macs_only" then
source_macs_only = true
elseif devices_mode == "dhcp_macs_only" then
dhcp_macs_only = true
@ -75,8 +70,7 @@ if(isEmptyString(vlan)) then vlan = 0 end
if(sortOrder == "desc") then sOrder = false else sOrder = true end
local macs_stats = interface.getMacsInfo(sortColumn, perPage, to_skip, sOrder,
source_macs_only,
host_macs_only, manufacturer,
source_macs_only, manufacturer,
nil, device_type, "", dhcp_macs_only)
local total_rows = 0