summaryrefslogtreecommitdiff
path: root/python/vyos/firewall.py
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2024-03-05 10:54:37 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-06 04:32:36 +0000
commit2f232841a544fb3d602831cf0b2c95c447a245ea (patch)
tree578a39b37e65f9495fc58cc6aa1d5feb4a901aa7 /python/vyos/firewall.py
parentcf906599a9ce99fce04645c822093a0eab980c97 (diff)
downloadvyos-1x-2f232841a544fb3d602831cf0b2c95c447a245ea.tar.gz
vyos-1x-2f232841a544fb3d602831cf0b2c95c447a245ea.zip
T6061: fix rule parsing when connection-status is used
(cherry picked from commit 8f2534e9654b61b7db45788bb52ac6cf8017b054)
Diffstat (limited to 'python/vyos/firewall.py')
-rw-r--r--python/vyos/firewall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py
index 49e095946..e70b4f0d9 100644
--- a/python/vyos/firewall.py
+++ b/python/vyos/firewall.py
@@ -136,10 +136,10 @@ def parse_rule(rule_conf, hook, fw_name, rule_id, ip_name):
if 'connection_status' in rule_conf and rule_conf['connection_status']:
status = rule_conf['connection_status']
if status['nat'] == 'destination':
- nat_status = '{dnat}'
+ nat_status = 'dnat'
output.append(f'ct status {nat_status}')
if status['nat'] == 'source':
- nat_status = '{snat}'
+ nat_status = 'snat'
output.append(f'ct status {nat_status}')
if 'protocol' in rule_conf and rule_conf['protocol'] != 'all':