Skip to content

Commit 61e234a

Browse files
committed
firewall: T7475: Remove redundant if statement in jinja template
1 parent 6611627 commit 61e234a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

data/templates/firewall/nftables.j2

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ table ip vyos_filter {
155155
{% if ipv4.output.filter.disable_conntrack is vyos_defined %}
156156
chain VYOS_DISABLE_CONNTRACK_OUT {
157157
type filter hook output priority -320; policy accept;
158-
{% if ipv4.output.filter.disable_conntrack is vyos_defined %}
159-
notrack counter comment "DISABLE-CT-OUT"
160-
{% endif %}
158+
notrack counter comment "DISABLE-CT-OUT"
161159
}
162160
{% endif %}
163161

@@ -344,9 +342,7 @@ table ip6 vyos_filter {
344342
{% if ipv6.output.filter.disable_conntrack is vyos_defined %}
345343
chain VYOS_DISABLE_CONNTRACK_OUT_V6 {
346344
type filter hook output priority -320; policy accept;
347-
{% if ipv6.output.filter.disable_conntrack is vyos_defined %}
348-
notrack counter comment "DISABLE-CT-OUT-V6"
349-
{% endif %}
345+
notrack counter comment "DISABLE-CT-OUT-V6"
350346
}
351347
{% endif %}
352348

0 commit comments

Comments
 (0)