summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Almenar <adrian@tecnocratica.net>2022-07-25 15:47:51 +0200
committerAdrian Almenar <adrian@tecnocratica.net>2022-07-25 15:47:51 +0200
commitbd119de6fd32480a4b6fd9c3b16cd5191af350af (patch)
tree6ff52e2be7a71bf8e9fca28498fa091c81c8e628 /src
parentdf7348da111668d38796d955bf64fa384eb7a58f (diff)
downloadvyos-1x-bd119de6fd32480a4b6fd9c3b16cd5191af350af.tar.gz
vyos-1x-bd119de6fd32480a4b6fd9c3b16cd5191af350af.zip
fastnetmon: T4556: Allow configure white_list_path and populate with hosts/networks that should be ignored.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/service_ids_fastnetmon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/service_ids_fastnetmon.py b/src/conf_mode/service_ids_fastnetmon.py
index 615658c84..c58f8db9a 100755
--- a/src/conf_mode/service_ids_fastnetmon.py
+++ b/src/conf_mode/service_ids_fastnetmon.py
@@ -29,6 +29,7 @@ airbag.enable()
config_file = r'/run/fastnetmon/fastnetmon.conf'
networks_list = r'/run/fastnetmon/networks_list'
+excluded_networks_list = r'/run/fastnetmon/excluded_networks_list'
def get_config(config=None):
if config:
@@ -75,6 +76,7 @@ def generate(fastnetmon):
render(config_file, 'ids/fastnetmon.j2', fastnetmon)
render(networks_list, 'ids/fastnetmon_networks_list.j2', fastnetmon)
+ render(excluded_networks_list, 'ids/fastnetmon_excluded_networks_list.j2', fastnetmon)
return None
def apply(fastnetmon):