diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-06 05:31:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 05:31:52 +0100 |
commit | 44a37687ccfa10a50f079611870d738484c6a4c4 (patch) | |
tree | 8a1441c0df2d3b0ff51c79612b49a3552ffa1d01 /python | |
parent | b7e12d3fcc9768f2890a7823e266643ffb5568c4 (diff) | |
parent | 8f2534e9654b61b7db45788bb52ac6cf8017b054 (diff) | |
download | vyos-1x-44a37687ccfa10a50f079611870d738484c6a4c4.tar.gz vyos-1x-44a37687ccfa10a50f079611870d738484c6a4c4.zip |
Merge pull request #3087 from nicolas-fort/T6061-ct-status
T6061: fix rule parsing when connection-status is used
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/firewall.py | 4 |
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': |