summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-01-12 18:26:06 +0000
committersever-sever <v.gletenko@vyos.io>2021-01-12 18:26:06 +0000
commitc067a70b235b24fa58f7800810b10cbe8b7e9b0d (patch)
tree6e01151a6beb39b7f9b7b38fff381642c679d804 /data
parentf493df24ba29472735b1a4a081d0fce409b70d9f (diff)
downloadvyos-1x-c067a70b235b24fa58f7800810b10cbe8b7e9b0d.tar.gz
vyos-1x-c067a70b235b24fa58f7800810b10cbe8b7e9b0d.zip
bgp: T2387: Fix template for bgp redistribute proto ospv3
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgp.frr.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 16355a1e5..a1ff368e9 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -152,7 +152,11 @@ router bgp {{ asn }}
{% if protocol == 'table' %}
redistribute table {{ address_family[af].redistribute[protocol].table }}
{% else %}
- redistribute {{ protocol }}{% if address_family[af].redistribute[protocol].metric is defined %} metric {{ address_family[af].redistribute[protocol].metric }}{% endif %}{% if address_family[af].redistribute[protocol].route_map is defined %} route-map {{ address_family[af].redistribute[protocol].route_map }}{% endif %}
+{% set redistribution_protocol = protocol %}
+{% if protocol == 'ospfv3' %}
+{% set redistribution_protocol = 'ospf6' %}
+{% endif %}
+ redistribute {{ redistribution_protocol }}{% if address_family[af].redistribute[protocol].metric is defined %} metric {{ address_family[af].redistribute[protocol].metric }}{% endif %}{% if address_family[af].redistribute[protocol].route_map is defined %} route-map {{ address_family[af].redistribute[protocol].route_map }}{% endif %}
{####### we need this blank line!! #######}
{% endif %}