summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/zebra.route-map.frr.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/data/templates/frr/zebra.route-map.frr.j2 b/data/templates/frr/zebra.route-map.frr.j2
new file mode 100644
index 000000000..bd461d904
--- /dev/null
+++ b/data/templates/frr/zebra.route-map.frr.j2
@@ -0,0 +1,21 @@
+!
+{% if vrf is vyos_defined %}
+vrf {{ vrf }}
+{% if protocol is vyos_defined %}
+{% for prot, prot_config in protocol.items() %}
+ {{ afi }} protocol {{ protocol }} route-map {{ prot_config.route_map }}
+{% endfor %}
+{% endif %}
+ exit-vrf
+!
+{% else %}
+{% if protocol is vyos_defined %}
+{% for prot, prot_config in protocol.items() %}
+{% if prot is vyos_defined('ospfv3') %}
+{% set prot = 'ospf6' %}
+{% endif %}
+{{ afi }} protocol {{ prot }} route-map {{ prot_config.route_map }}
+{% endfor %}
+{% endif %}
+{% endif %}
+!