Add manufacturer filter to Layer 2 devices (#1011)

This commit is contained in:
Emanuele Faranda 2017-03-02 15:29:28 +01:00 committed by simonemainardi
parent c33632c82a
commit c39901bde9
6 changed files with 176 additions and 24 deletions

View file

@ -18,6 +18,7 @@ local sortOrder = _GET["sortOrder"]
local vlan = _GET["vlan"]
local include_special_macs = _GET["include_special_macs"]
local host_macs_only = _GET["host_macs_only"]
local manufacturer = _GET["manufacturer"]
local sortPrefs = "macs"
@ -74,7 +75,7 @@ if(sortOrder == "desc") then sOrder = false else sOrder = true end
local macs_stats = interface.getMacsInfo(sortColumn, perPage, to_skip, sOrder,
tonumber(vlan),
include_special_macs == false --[[ skip special macs ]],
host_macs_only)
host_macs_only, manufacturer)
local total_rows = 0