diff options
author | aapostoliuk <108394744+aapostoliuk@users.noreply.github.com> | 2025-03-18 17:26:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-18 15:26:06 +0000 |
commit | 3f595e5d47a78cb38c891567aa5d66ac6d5dc62b (patch) | |
tree | 39c382f4ad9ec8e6f7f28c2e2426d518a19645b7 /data/templates | |
parent | 0af5728700b0b5da30e7713a4596aeadaf537b49 (diff) | |
download | vyos-1x-3f595e5d47a78cb38c891567aa5d66ac6d5dc62b.tar.gz vyos-1x-3f595e5d47a78cb38c891567aa5d66ac6d5dc62b.zip |
bgp: T7157: Allow using route-maps for VRF route leaking in BGP (#4404)
* bgp: T7157: Allow using route-maps for VRF route leaking in BGP
Added the possibility of using route-map in route leaking.
* Improve the constraint error message
---------
Co-authored-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/frr/bgpd.frr.j2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2 index 3b462b4a9..b89f15be1 100644 --- a/data/templates/frr/bgpd.frr.j2 +++ b/data/templates/frr/bgpd.frr.j2 @@ -357,6 +357,9 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }} import vrf {{ vrf }} {% endfor %} {% endif %} +{% if afi_config.route_map.vrf.import is vyos_defined %} + import vrf route-map {{ afi_config.route_map.vrf.import }} +{% endif %} {% if afi_config.label.vpn.export is vyos_defined %} label vpn export {{ afi_config.label.vpn.export }} {% endif %} |