summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-25 19:36:24 +0200
committerGitHub <noreply@github.com>2022-07-25 19:36:24 +0200
commit55d7ff854cfe0eba1b0a53e1316976471ce2d914 (patch)
tree6ff52e2be7a71bf8e9fca28498fa091c81c8e628 /src
parentdf7348da111668d38796d955bf64fa384eb7a58f (diff)
parentbd119de6fd32480a4b6fd9c3b16cd5191af350af (diff)
downloadvyos-1x-55d7ff854cfe0eba1b0a53e1316976471ce2d914.tar.gz
vyos-1x-55d7ff854cfe0eba1b0a53e1316976471ce2d914.zip
Merge pull request #1434 from aalmenar/T4556
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):