diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-11-24 10:24:48 +0000 |
---|---|---|
committer | Bjarke Istrup Pedersen <gurli@gurlinet.dk> | 2023-12-15 21:28:51 +0100 |
commit | fcedc85e2b4d3d6663b0c78c3fb3bd93db91fcc2 (patch) | |
tree | 18e4f1b706e2ada437e97c861d85b4575ebd1097 /python | |
parent | af2668c4479377063c2e65e2383648155fb1e8f4 (diff) | |
download | vyos-1x-fcedc85e2b4d3d6663b0c78c3fb3bd93db91fcc2.tar.gz vyos-1x-fcedc85e2b4d3d6663b0c78c3fb3bd93db91fcc2.zip |
T5775: firewall: re-add state-policy to firewall. These commands are now included in <set firewall global-options state-policy> node.
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py index 320abe256..216f967a7 100644 --- a/python/vyos/template.py +++ b/python/vyos/template.py @@ -602,7 +602,7 @@ def nft_default_rule(fw_conf, fw_name, ipv6=False): def nft_state_policy(conf, state): out = [f'ct state {state}'] - if 'log' in conf and 'enable' in conf['log']: + if 'log' in conf: log_state = state[:3].upper() log_action = (conf['action'] if 'action' in conf else 'accept')[:1].upper() out.append(f'log prefix "[STATE-POLICY-{log_state}-{log_action}]"') |