summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-11 13:05:42 +0100
committerGitHub <noreply@github.com>2023-11-11 13:05:42 +0100
commite5a53d48cf149facb30410c25e55ab3780205186 (patch)
tree0ea5b052b18f9db57fc65981950529ef478e8298 /src/conf_mode
parent2ca0ac6ac420b5904d87344db80840c640d2cde9 (diff)
parentc4409d6a4e11bf2acc7b5b96888e2c471c4559e5 (diff)
downloadvyos-1x-e5a53d48cf149facb30410c25e55ab3780205186.tar.gz
vyos-1x-e5a53d48cf149facb30410c25e55ab3780205186.zip
Merge pull request #2471 from nicolas-fort/T5729
T5729: firewall: switch to valueless in
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/firewall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/firewall.py b/src/conf_mode/firewall.py
index 8028492a7..ceed0cf31 100755
--- a/src/conf_mode/firewall.py
+++ b/src/conf_mode/firewall.py
@@ -272,7 +272,7 @@ def verify_rule(firewall, rule_conf, ipv6):
raise ConfigError(f'{side} port-group and port cannot both be defined')
if 'log_options' in rule_conf:
- if 'log' not in rule_conf or 'enable' not in rule_conf['log']:
+ if 'log' not in rule_conf:
raise ConfigError('log-options defined, but log is not enable')
if 'snapshot_length' in rule_conf['log_options'] and 'group' not in rule_conf['log_options']: