diff options
| author | Christian Poessinger <christian@poessinger.com> | 2022-04-10 20:55:09 +0200 | 
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2022-04-10 20:55:35 +0200 | 
| commit | 5eed0cba04ce6f2e69dd91edf91c6930e9bb80a3 (patch) | |
| tree | bdfb7ebaf9d424080e016b31ee9c83c6884a808a | |
| parent | 3e272460a2d9f492ee9649a703a21480d246453f (diff) | |
| download | vyos-1x-5eed0cba04ce6f2e69dd91edf91c6930e9bb80a3.tar.gz vyos-1x-5eed0cba04ce6f2e69dd91edf91c6930e9bb80a3.zip | |
vrf: T4333: migrate to new vyos_defined Jinja2 test
| -rw-r--r-- | data/templates/vrf/vrf.conf.tmpl | 4 | 
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 %} | 
