summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-11-10 19:26:35 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2023-11-10 19:26:35 +0000
commitc4409d6a4e11bf2acc7b5b96888e2c471c4559e5 (patch)
treec23aff0f073c54eb7a6e35a32df2bf27ed248d15 /src/conf_mode
parent1fcb8637f864e13c5208bed22f3a065b5d78f596 (diff)
downloadvyos-1x-c4409d6a4e11bf2acc7b5b96888e2c471c4559e5.tar.gz
vyos-1x-c4409d6a4e11bf2acc7b5b96888e2c471c4559e5.zip
T5729: firewall: switch to valueless in order to remove unnecessary <enable|disable> commands; log and state moved to new syntax.
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']: