summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 18:41:12 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 18:41:44 +0200
commit9682337c3f13f703511bf093123b7ac1d45f48df (patch)
treeb5aaa16444ffdbe198dd35fc8976884b71477446 /data
parentbee080daffad41468eee6084f54bc67b1470f914 (diff)
downloadvyos-1x-9682337c3f13f703511bf093123b7ac1d45f48df.tar.gz
vyos-1x-9682337c3f13f703511bf093123b7ac1d45f48df.zip
isis: T3576: support metric and route-map when originating a default route
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/isis.frr.tmpl9
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 %}