summaryrefslogtreecommitdiff
path: root/data/templates/frr/rip.frr.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-19 20:02:02 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-19 20:02:02 +0200
commit619c518bfc904b060b5b59180940a804fe1beafd (patch)
treeb29c0cdb73edafd1485ac641dad37408e4b6209f /data/templates/frr/rip.frr.tmpl
parentdf6f7fdf461b929dd3df12d5904a2b33c2a04ea1 (diff)
downloadvyos-1x-619c518bfc904b060b5b59180940a804fe1beafd.tar.gz
vyos-1x-619c518bfc904b060b5b59180940a804fe1beafd.zip
T2175: properly exist FRR "router" context when rendering templates
When rendering a dynamic routing protocol ensure the context, e.g. "router bgp" or "router ospf" is proberly exited before applying any zebra route-map.
Diffstat (limited to 'data/templates/frr/rip.frr.tmpl')
-rw-r--r--data/templates/frr/rip.frr.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/templates/frr/rip.frr.tmpl b/data/templates/frr/rip.frr.tmpl
index cabc236f0..748dfb126 100644
--- a/data/templates/frr/rip.frr.tmpl
+++ b/data/templates/frr/rip.frr.tmpl
@@ -89,6 +89,7 @@ router rip
{% endif %}
{% endif %}
{% include 'frr/rip_ripng.frr.j2' %}
+ exit
!
{% if route_map is defined and route_map is not none %}
ip protocol rip route-map {{ route_map }}