From 6135da49ffb87c728ce1327febf81cc04f1859a7 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Mon, 30 Jan 2023 13:12:24 +0000 Subject: T4964: Fix template bgpd.frr.j2 for l2vpn vni route-targets Route-target export/import for l2vpn-evpn vni xxx works as leafNode with multiple values We have to use "for" for such values --- data/templates/frr/bgpd.frr.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'data/templates/frr') 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 %} -- cgit v1.2.3