Appliance management/capture interfaces selection

This commit is contained in:
Alfredo Cardigliano 2020-11-24 11:48:19 +01:00
parent 6055f4d630
commit 9a37185c79
4 changed files with 55 additions and 29 deletions

View file

@ -24,6 +24,12 @@ local tz_utils = require "tz_utils"
-- ##############################################
-- NOTE:
-- - The LAN interface in "passive" mode is the Management Interface
-- - WAN interfaces in "passive" mode are the Capture Interfaces
-- ##############################################
local appliance_config = {}
-- ##############################################
@ -62,6 +68,16 @@ end
-- ##############################################
function appliance_config:getOperatingMode()
if not self.config.globals.operating_mode then
return "passive"
end
return self.config.globals.operating_mode
end
-- ##############################################
-- Get the physical LAN interfaces, based on the current operating mode
-- nf_config overrides this
function appliance_config:getPhysicalLanInterfaces()