summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-27 22:19:22 +0200
committerChristian Breunig <christian@breunig.cc>2023-04-27 22:19:22 +0200
commite624d9c6cac6ea37ffbcb068790bcb8aa9e8e6e2 (patch)
tree1c0062c000c470c964a73e225677ec4294064a5d /data/templates
parent923d7f1d75a44839a8f76274564cf44c95deb3af (diff)
downloadvyos-1x-e624d9c6cac6ea37ffbcb068790bcb8aa9e8e6e2.tar.gz
vyos-1x-e624d9c6cac6ea37ffbcb068790bcb8aa9e8e6e2.zip
bgp: T5010: fix for-loop copy/paste error
Commit 923d7f1d7 (bgp: T5010: add missing for-loop when iterating over "both" route-target) referenced export rt instead of both. This happened while improperly copy-pasting the line.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/bgpd.frr.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index a6c364b56..7bd9efdce 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -419,7 +419,7 @@ 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 %}
-{% for route_target in vni_config.route_target.export %}
+{% for route_target in vni_config.route_target.both %}
route-target both {{ route_target }}
{% endfor %}
{% endif %}