diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-24 18:41:12 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-24 18:41:44 +0200 |
commit | 9682337c3f13f703511bf093123b7ac1d45f48df (patch) | |
tree | b5aaa16444ffdbe198dd35fc8976884b71477446 /data/templates/frr | |
parent | bee080daffad41468eee6084f54bc67b1470f914 (diff) | |
download | vyos-1x-9682337c3f13f703511bf093123b7ac1d45f48df.tar.gz vyos-1x-9682337c3f13f703511bf093123b7ac1d45f48df.zip |
isis: T3576: support metric and route-map when originating a default route
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/isis.frr.tmpl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/data/templates/frr/isis.frr.tmpl b/data/templates/frr/isis.frr.tmpl index 433f10892..58c44e2d4 100644 --- a/data/templates/frr/isis.frr.tmpl +++ b/data/templates/frr/isis.frr.tmpl @@ -101,11 +101,10 @@ router isis VyOS {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} area-password clear {{ area_password.plaintext_password }} {% endif %} {% if default_information is defined and default_information.originate is defined and default_information.originate is not none %} -{% for level in default_information.originate.ipv4 if default_information.originate.ipv4 is defined %} - default-information originate ipv4 {{ level | replace('_', '-') }} -{% endfor %} -{% for level in default_information.originate.ipv6 if default_information.originate.ipv6 is defined %} - default-information originate ipv6 {{ level | replace('_', '-') }} always +{% for afi, afi_config in default_information.originate.items() %} +{% for level, level_config in afi_config.items() %} + default-information originate {{ afi }} {{ level | replace('_', '-') }} {{ 'always' if level_config.always is defined }} {{ 'route-map ' ~ level_config.route_map if level_config.route_map is defined }} {{ 'metric ' ~ level_config.metric if level_config.metric is defined }} +{% endfor %} {% endfor %} {% endif %} {% if redistribute is defined and redistribute.ipv4 is defined and redistribute.ipv4 is not none %} |