summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-12-31 23:22:25 +0000
committerGitHub <noreply@github.com>2023-12-31 23:22:25 +0000
commit2078253176046ea4d07e69caeb7932ea439b5614 (patch)
tree74c994d9100d4ded988de5d49ea9f411d3d17528 /python
parent9e49bcad817dcc7c39e4d5e2329828251327baad (diff)
parent57faafc8f8597f62d5edb5529349a565d7d2e865 (diff)
downloadvyos-1x-2078253176046ea4d07e69caeb7932ea439b5614.tar.gz
vyos-1x-2078253176046ea4d07e69caeb7932ea439b5614.zip
Merge pull request #2725 from vyos/mergify/bp/sagitta/pr-2651
firewall: T5834: Rename 'enable-default-log' to 'default-log' (backport #2651)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py
index 119ea54d6..b65386654 100644
--- a/python/vyos/template.py
+++ b/python/vyos/template.py
@@ -579,7 +579,7 @@ def nft_default_rule(fw_conf, fw_name, ipv6=False):
default_action = fw_conf['default_action']
family = 'ipv6' if ipv6 else 'ipv4'
- if 'enable_default_log' in fw_conf:
+ if 'default_log' in fw_conf:
action_suffix = default_action[:1].upper()
output.append(f'log prefix "[{family}-{fw_name[:19]}-default-{action_suffix}]"')