summaryrefslogtreecommitdiff
path: root/data/templates/vrf/vrf.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-10 20:55:09 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-10 20:55:35 +0200
commit5eed0cba04ce6f2e69dd91edf91c6930e9bb80a3 (patch)
treebdfb7ebaf9d424080e016b31ee9c83c6884a808a /data/templates/vrf/vrf.conf.tmpl
parent3e272460a2d9f492ee9649a703a21480d246453f (diff)
downloadvyos-1x-5eed0cba04ce6f2e69dd91edf91c6930e9bb80a3.tar.gz
vyos-1x-5eed0cba04ce6f2e69dd91edf91c6930e9bb80a3.zip
vrf: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/vrf/vrf.conf.tmpl')
-rw-r--r--data/templates/vrf/vrf.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/vrf/vrf.conf.tmpl b/data/templates/vrf/vrf.conf.tmpl
index 29c0ba08d..a51e11ddf 100644
--- a/data/templates/vrf/vrf.conf.tmpl
+++ b/data/templates/vrf/vrf.conf.tmpl
@@ -2,8 +2,8 @@
#
# Routing table ID to name mapping reference
# id vrf name comment
-{% if name is defined and name is not none %}
+{% if name is vyos_defined %}
{% for vrf, vrf_config in name.items() %}
-{{ "%-10s" | format(vrf_config.table) }} {{ "%-16s" | format(vrf) }} {{ '# ' + vrf_config.description if vrf_config.description is defined and vrf_config.description is not none }}
+{{ "%-10s" | format(vrf_config.table) }} {{ "%-16s" | format(vrf) }} {{ '# ' ~ vrf_config.description if vrf_config.description is vyos_defined }}
{% endfor %}
{% endif %}