Rework special macs into source macs and use them into the footer

This commit is contained in:
emanuele-f 2017-05-26 17:28:53 +02:00
parent ffc97ef922
commit 4f0debccd5
10 changed files with 101 additions and 97 deletions

View file

@ -341,6 +341,12 @@ local function validateResetStatsMode(mode)
return validateChoice(modes, mode)
end
local function validateDevicesMode(mode)
local modes = {"host_macs_only"}
return validateChoice(modes, mode)
end
local function validateSnmpAction(mode)
local modes = {"delete", "add", "addNewDevice", "startPolling", "stopPolling"}
@ -861,8 +867,6 @@ local known_parameters = {
["extended"] = validateBool, -- Flag for extended report
["tracked"] = validateNumber, --
["ajax_format"] = validateAjaxFormat, -- iface_hosts_list
["include_special_macs"] = validateBool, --
["host_macs_only"] = validateBool, --
["host_stats_flows"] = validateBool, -- True if host_get_json should return statistics regarding host flows
["showall"] = validateBool, -- report.lua
["addvlan"] = validateBool, -- True if VLAN must be added to the result
@ -913,6 +917,7 @@ local known_parameters = {
["include_unlimited"] = validateBool, -- pool_details_ndpi.lua
["policy_preset"] = validateEmptyOr(validatePolicyPreset), -- a traffic bridge policy set
["members_filter"] = validateMembersFilter, -- host_pools.lua
["devices_mode"] = validateDevicesMode, -- mac_stats.lua
}
-- A special parameter is formed by a prefix, followed by a variable suffix