summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-26 10:55:34 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-26 11:07:21 +0100
commit945a5ed22adab59314c8c0854c7cabae4e78d8d4 (patch)
tree8eb6760ecd32f108f791d1232be361f5f4f45b37 /data/templates/frr
parent48cc27d9446abb4dfa5e78a42c591ac553e85d3e (diff)
downloadvyos-1x-945a5ed22adab59314c8c0854c7cabae4e78d8d4.tar.gz
vyos-1x-945a5ed22adab59314c8c0854c7cabae4e78d8d4.zip
ospfv3: T4107: add support for "default-information originate"
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/ospf6d.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/ospf6d.frr.tmpl b/data/templates/frr/ospf6d.frr.tmpl
index 1149e640c..8279e5abb 100644
--- a/data/templates/frr/ospf6d.frr.tmpl
+++ b/data/templates/frr/ospf6d.frr.tmpl
@@ -69,7 +69,10 @@ router ospf6 {{ 'vrf ' + vrf if vrf is defined and vrf is not none }}
area {{ area_id }} import-list {{ area_config.import_list }}
{% endif %}
{% endfor %}
+{% endif %}
auto-cost reference-bandwidth {{ auto_cost.reference_bandwidth }}
+{% if default_information is defined and default_information.originate is defined and default_information.originate is not none %}
+ default-information originate {{ 'always' if default_information.originate.always is defined }} {{ 'metric ' + default_information.originate.metric if default_information.originate.metric is defined }} {{ 'metric-type ' + default_information.originate.metric_type if default_information.originate.metric_type is defined }} {{ 'route-map ' + default_information.originate.route_map if default_information.originate.route_map is defined }}
{% endif %}
{% if distance is defined and distance is not none %}
{% if distance.global is defined and distance.global is not none %}