summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-30 18:00:02 +0100
committerGitHub <noreply@github.com>2023-01-30 18:00:02 +0100
commit44bca52113479fcbe12c55a4740dd4669d2b7856 (patch)
tree4d62a8795fa4b8a27ae56aa373970b6ac7288be4 /data/templates
parent3c750f9b12b54d872848f6571deb02245ba8e28a (diff)
parent6135da49ffb87c728ce1327febf81cc04f1859a7 (diff)
downloadvyos-1x-44bca52113479fcbe12c55a4740dd4669d2b7856.tar.gz
vyos-1x-44bca52113479fcbe12c55a4740dd4669d2b7856.zip
Merge pull request #1791 from sever-sever/T4964
T4964: Fix template bgpd.frr.j2 for l2vpn vni route-targets
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/bgpd.frr.j28
1 files changed, 6 insertions, 2 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index 5febd7c66..85c3339bf 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -414,10 +414,14 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
route-target both {{ vni_config.route_target.both }}
{% endif %}
{% if vni_config.route_target.export is vyos_defined %}
- route-target export {{ vni_config.route_target.export }}
+{% for route_target in vni_config.route_target.export %}
+ route-target export {{ route_target }}
+{% endfor %}
{% endif %}
{% if vni_config.route_target.import is vyos_defined %}
- route-target import {{ vni_config.route_target.import }}
+{% for route_target in vni_config.route_target.import %}
+ route-target import {{ route_target }}
+{% endfor %}
{% endif %}
exit-vni
{% endfor %}