summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-12 22:25:36 +0200
committerGitHub <noreply@github.com>2024-08-12 22:25:36 +0200
commite229d7498cc77298c79af9811a742f3ad54edf4c (patch)
tree8cf0c1c76e29a129d11a004ed3dd02eb2796c8eb /src
parenta21b795180b98f264468c30a33da83cc56bfe21d (diff)
parentba87bed16080bc799f83914e48693dac880386e2 (diff)
downloadvyos-1x-e229d7498cc77298c79af9811a742f3ad54edf4c.tar.gz
vyos-1x-e229d7498cc77298c79af9811a742f3ad54edf4c.zip
Merge pull request #3958 from natali-rs1985/T6624-current
suricata: T6624: Make it possible for suricata address groups to reference each other
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/service_suricata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/service_suricata.py b/src/conf_mode/service_suricata.py
index 69b369e0b..1ce170145 100755
--- a/src/conf_mode/service_suricata.py
+++ b/src/conf_mode/service_suricata.py
@@ -59,7 +59,7 @@ def topological_sort(source):
temporary_marks.add(n)
for m in v.get('group', []):
- m = m.lstrip('!')
+ m = m.lstrip('!').replace('-', '_')
if m not in source:
raise ConfigError(f'Undefined referenced group "{m}"')
visit(m, source[m])