From 8e1678974f6341c991ea0582aa15a8b470de79ef Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 24 May 2021 20:54:58 +0200 Subject: isis: T3417: ease Jinja2 template code for is-type --- data/templates/frr/isis.frr.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'data') 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 %} ! -- cgit v1.2.3