diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-01-30 13:12:24 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-01-30 13:16:49 +0000 |
commit | 6135da49ffb87c728ce1327febf81cc04f1859a7 (patch) | |
tree | 4d62a8795fa4b8a27ae56aa373970b6ac7288be4 /data/templates/frr | |
parent | 3c750f9b12b54d872848f6571deb02245ba8e28a (diff) | |
download | vyos-1x-6135da49ffb87c728ce1327febf81cc04f1859a7.tar.gz vyos-1x-6135da49ffb87c728ce1327febf81cc04f1859a7.zip |
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
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/bgpd.frr.j2 | 8 |
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 %} |