mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Appliance management/capture interfaces selection
This commit is contained in:
parent
6055f4d630
commit
9a37185c79
4 changed files with 55 additions and 29 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue