diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-24 20:54:58 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-24 20:54:58 +0200 |
commit | 8e1678974f6341c991ea0582aa15a8b470de79ef (patch) | |
tree | f442fb6dbc32d55c216f85d22df677b7709134a2 | |
parent | 14144cbf4d5aa8e3b2cd7ee9a126f24c354fe7fb (diff) | |
download | vyos-1x-8e1678974f6341c991ea0582aa15a8b470de79ef.tar.gz vyos-1x-8e1678974f6341c991ea0582aa15a8b470de79ef.zip |
isis: T3417: ease Jinja2 template code for is-type
-rw-r--r-- | data/templates/frr/isis.frr.tmpl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/data/templates/frr/isis.frr.tmpl b/data/templates/frr/isis.frr.tmpl index 540d91e3c..f000830b0 100644 --- a/data/templates/frr/isis.frr.tmpl +++ b/data/templates/frr/isis.frr.tmpl @@ -127,12 +127,10 @@ router isis VyOS {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} {% endfor %} {% endif %} {% if level is defined and level is not none %} -{% if level == 'level-1' %} - is-type level-1 -{% elif level == 'level-2' %} +{% if level == 'level-2' %} is-type level-2-only -{% elif level == 'level-1-2' %} - is-type level-1-2 +{% else %} + is-type {{ level }} {% endif %} {% endif %} ! |