summaryrefslogtreecommitdiff
path: root/data/templates/conntrack
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-13 22:53:44 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-13 22:55:46 +0200
commit4df48d5713398800a74aae7f69932e9219a46f24 (patch)
tree97e8ddbb8116f4973925ac4387245a1a8926ce70 /data/templates/conntrack
parentf5dc3db1fb62a51b80eeb635e91e38d28c0fe291 (diff)
downloadvyos-1x-4df48d5713398800a74aae7f69932e9219a46f24.tar.gz
vyos-1x-4df48d5713398800a74aae7f69932e9219a46f24.zip
conntrack: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/conntrack')
-rw-r--r--data/templates/conntrack/nftables-ct.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/conntrack/nftables-ct.tmpl b/data/templates/conntrack/nftables-ct.tmpl
index cebc1a54e..569e73df1 100644
--- a/data/templates/conntrack/nftables-ct.tmpl
+++ b/data/templates/conntrack/nftables-ct.tmpl
@@ -12,7 +12,7 @@ table raw {
chain {{ nft_ct_ignore_name }} {
{% if ignore.rule is vyos_defined %}
{% for rule, rule_config in ignore.rule.items() %}
- # rule-{{ rule }} {{ '- ' ~ rule_config.description if rule_config.description is defined and rule_config.description is not none }}
+ # rule-{{ rule }} {{ '- ' ~ rule_config.description if rule_config.description is vyos_defined }}
{% set nft_command = '' %}
{% if rule_config.inbound_interface is vyos_defined %}
{% set nft_command = nft_command ~ ' iifname ' ~ rule_config.inbound_interface %}
@@ -40,7 +40,7 @@ table raw {
chain {{ nft_ct_timeout_name }} {
{% if timeout.custom.rule is vyos_defined %}
{% for rule, rule_config in timeout.custom.rule.items() %}
- # rule-{{ rule }} {{ '- ' ~ rule_config.description if rule_config.description is defined and rule_config.description is not none }}
+ # rule-{{ rule }} {{ '- ' ~ rule_config.description if rule_config.description is vyos_defined }}
{% endfor %}
{% endif %}
return