summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorl0crian1 <ryan.claridge13@gmail.com>2025-09-13 06:29:40 -0400
committerl0crian1 <ryan.claridge13@gmail.com>2025-09-13 06:29:40 -0400
commit61e234a74a95f68c665a21437c9ffaa8747bbc3a (patch)
tree5f7100fecf17f4714a78378ba9500c207c9f59b4 /data
parent6611627f6a73af912082dc79c3039e6c492a6cc6 (diff)
downloadvyos-1x-61e234a74a95f68c665a21437c9ffaa8747bbc3a.tar.gz
vyos-1x-61e234a74a95f68c665a21437c9ffaa8747bbc3a.zip
firewall: T7475: Remove redundant if statement in jinja template
Diffstat (limited to 'data')
-rwxr-xr-xdata/templates/firewall/nftables.j28
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 %}