summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2021-05-19 13:44:41 +0300
committerGitHub <noreply@github.com>2021-05-19 12:44:41 +0200
commita1ab13b533f300353579cf4d23f8e6a77ca02100 (patch)
treea42616905a6d72618f9666370f9fc9baafbe4e81 /data/templates/frr
parentb14b67520e578d1ada8e12f4626f7d82b4cab9b4 (diff)
downloadvyos-1x-a1ab13b533f300353579cf4d23f8e6a77ca02100.tar.gz
vyos-1x-a1ab13b533f300353579cf4d23f8e6a77ca02100.zip
ospfv3: T3554: add area-type "stub"
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/ospfv3.frr.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/frr/ospfv3.frr.tmpl b/data/templates/frr/ospfv3.frr.tmpl
index d08972a80..0026c0d2c 100644
--- a/data/templates/frr/ospfv3.frr.tmpl
+++ b/data/templates/frr/ospfv3.frr.tmpl
@@ -50,6 +50,11 @@ router ospf6
interface {{ interface }} area {{ area_id }}
{% endfor %}
{% endif %}
+{% if area_config.area_type is defined and area_config.area_type is not none %}
+{% for type, type_config in area_config.area_type.items() %}
+ area {{ area_id }} {{ type }} {{ 'no-summary' if type_config.no_summary is defined }}
+{% endfor %}
+{% endif %}
{% if area_config.range is defined and area_config.range is not none %}
{% for prefix, prefix_config in area_config.range.items() %}
area {{ area_id }} range {{ prefix }} {{ 'advertise' if prefix_config.advertise is defined }} {{ 'not-advertise' if prefix_config.not_advertise is defined }}