diff options
| author | l0crian1 <ryan.claridge13@gmail.com> | 2025-09-13 06:29:40 -0400 |
|---|---|---|
| committer | l0crian1 <ryan.claridge13@gmail.com> | 2025-09-13 06:29:40 -0400 |
| commit | 61e234a74a95f68c665a21437c9ffaa8747bbc3a (patch) | |
| tree | 5f7100fecf17f4714a78378ba9500c207c9f59b4 /data | |
| parent | 6611627f6a73af912082dc79c3039e6c492a6cc6 (diff) | |
| download | vyos-1x-61e234a74a95f68c665a21437c9ffaa8747bbc3a.tar.gz vyos-1x-61e234a74a95f68c665a21437c9ffaa8747bbc3a.zip | |
firewall: T7475: Remove redundant if statement in jinja template
Diffstat (limited to 'data')
| -rwxr-xr-x | data/templates/firewall/nftables.j2 | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/data/templates/firewall/nftables.j2 b/data/templates/firewall/nftables.j2 index 894232125..f810496f9 100755 --- a/data/templates/firewall/nftables.j2 +++ b/data/templates/firewall/nftables.j2 @@ -155,9 +155,7 @@ table ip vyos_filter { {% if ipv4.output.filter.disable_conntrack is vyos_defined %} chain VYOS_DISABLE_CONNTRACK_OUT { type filter hook output priority -320; policy accept; -{% if ipv4.output.filter.disable_conntrack is vyos_defined %} - notrack counter comment "DISABLE-CT-OUT" -{% endif %} + notrack counter comment "DISABLE-CT-OUT" } {% endif %} @@ -344,9 +342,7 @@ table ip6 vyos_filter { {% if ipv6.output.filter.disable_conntrack is vyos_defined %} chain VYOS_DISABLE_CONNTRACK_OUT_V6 { type filter hook output priority -320; policy accept; -{% if ipv6.output.filter.disable_conntrack is vyos_defined %} - notrack counter comment "DISABLE-CT-OUT-V6" -{% endif %} + notrack counter comment "DISABLE-CT-OUT-V6" } {% endif %} |
