summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-27 22:02:11 +0200
committerChristian Breunig <christian@breunig.cc>2023-04-27 22:02:11 +0200
commit923d7f1d75a44839a8f76274564cf44c95deb3af (patch)
treec67e88b54c0645a609370799265720ffb483319b /data/templates/frr
parent20eee1c4e17b9c5f20d51bd6eaad2615b729923f (diff)
downloadvyos-1x-923d7f1d75a44839a8f76274564cf44c95deb3af.tar.gz
vyos-1x-923d7f1d75a44839a8f76274564cf44c95deb3af.zip
bgp: T5010: add missing for-loop when iterating over "both" route-target
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgpd.frr.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index b749be93f..a6c364b56 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -419,16 +419,18 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
rd {{ vni_config.rd }}
{% endif %}
{% if vni_config.route_target.both is vyos_defined %}
- route-target both {{ vni_config.route_target.both }}
+{% for route_target in vni_config.route_target.export %}
+ route-target both {{ route_target }}
+{% endfor %}
{% endif %}
{% if vni_config.route_target.export is vyos_defined %}
{% for route_target in vni_config.route_target.export %}
- route-target export {{ route_target }}
+ route-target export {{ route_target }}
{% endfor %}
{% endif %}
{% if vni_config.route_target.import is vyos_defined %}
{% for route_target in vni_config.route_target.import %}
- route-target import {{ route_target }}
+ route-target import {{ route_target }}
{% endfor %}
{% endif %}
exit-vni