From 1d9cf31e849b862063200309734bab6620f57f1d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 8 May 2021 21:21:21 +0200 Subject: vrf: bgp: T3523: bugfix Kernel route-map deployment Commit 4f9aa30f ("vrf: bgp: T3523: add route-map support for kernel routes") added the possibility to also filter BGP routes towards the OS kernel, but the smoketests failed. Reason was a non working CLI command applied to bgpd. Thus the VRF route-map and the BGP configuration is now split into two templates, one to be used for each daemon (zebra and bgpd). Nevertheless one more bug was found in vyos.frr which currently does not suppoort calling modify_section() inside a configuration "block". See [1] for more info. [1]: https://phabricator.vyos.net/T3529 --- data/templates/frr/vrf.route-map.frr.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/templates/frr/vrf.route-map.frr.tmpl (limited to 'data/templates/frr/vrf.route-map.frr.tmpl') diff --git a/data/templates/frr/vrf.route-map.frr.tmpl b/data/templates/frr/vrf.route-map.frr.tmpl new file mode 100644 index 000000000..cb0e07616 --- /dev/null +++ b/data/templates/frr/vrf.route-map.frr.tmpl @@ -0,0 +1,10 @@ +! +{% if vrf is defined and vrf is not none and route_map is defined and route_map is not none %} +vrf {{ vrf }} + ip protocol {{ protocol }} route-map {{ route_map }} + exit-vrf +! +{% elif route_map is defined and route_map is not none %} +ip protocol {{ protocol }} route-map {{ route_map }} +{% endif %} +! -- cgit v1.2.3