summaryrefslogtreecommitdiff
path: root/data/templates/frr/zebra.route-map.frr.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/frr/zebra.route-map.frr.j2')
-rw-r--r--data/templates/frr/zebra.route-map.frr.j29
1 files changed, 9 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..8e18abbde
--- /dev/null
+++ b/data/templates/frr/zebra.route-map.frr.j2
@@ -0,0 +1,9 @@
+!
+{% if protocol is vyos_defined %}
+{% for protocol_name, protocol_config in protocol.items() %}
+{% if protocol_name is vyos_defined('ospfv3') %}
+{% set protocol_name = 'ospf6' %}
+{% endif %}
+{{ afi }} protocol {{ protocol_name }} route-map {{ protocol_config.route_map }}
+{% endfor %}
+{% endif %}