From ba87bed16080bc799f83914e48693dac880386e2 Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Thu, 8 Aug 2024 13:09:43 +0300 Subject: suricata: T6624: Fix for service suricata address-groups cannot be used in each other --- src/conf_mode/service_suricata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]) -- cgit v1.2.3