summaryrefslogtreecommitdiff
path: root/data/templates/frr/vrf.route-map.frr.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/frr/vrf.route-map.frr.tmpl')
-rw-r--r--data/templates/frr/vrf.route-map.frr.tmpl10
1 files changed, 10 insertions, 0 deletions
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 %}
+!