diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-06 19:26:45 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-06 19:26:45 +0200 |
commit | 4f9aa30f86ae589ea6303700a25393048b1e66f3 (patch) | |
tree | d98dd43a59a7884589dafb27cec5a9cdaf931e02 /data/templates/frr | |
parent | 144a2a9da0a7e5d30cb14227c2503f52793777da (diff) | |
download | vyos-1x-4f9aa30f86ae589ea6303700a25393048b1e66f3.tar.gz vyos-1x-4f9aa30f86ae589ea6303700a25393048b1e66f3.zip |
vrf: bgp: T3523: add route-map support for kernel routes
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/bgp.frr.tmpl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index 8090e154d..0245c875e 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -214,6 +214,15 @@ {% endif %} {% endmacro %} ! +{% if vrf is defined and vrf is not none and route_map is defined and route_map is not none %} +vrf {{ vrf }} + ip protocol bgp route-map {{ route_map }} + exit-vrf +! +{% elif route_map is defined and route_map is not none %} +ip protocol bgp route-map {{ route_map }} +{% endif %} +! router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none }} {% if parameters is defined and parameters.ebgp_requires_policy is defined %} bgp ebgp-requires-policy @@ -469,8 +478,5 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none {% if timers is defined and timers.keepalive is defined and timers.holdtime is defined %} timers bgp {{ timers.keepalive }} {{ timers.holdtime }} {% endif %} -! -{% if route_map is defined and route_map is not none %} -ip protocol bgp route-map {{ route_map }} -{% endif %} + end !
\ No newline at end of file |