summaryrefslogtreecommitdiff
path: root/data/templates/frr/static_mcast.frr.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-17 15:59:53 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-17 15:59:53 +0200
commit2411cf35b3cf8a4b11a714ff426e98bc1872e3c3 (patch)
tree9252b85867c15f1fa208b56d2bfbf40726508e81 /data/templates/frr/static_mcast.frr.tmpl
parent7ba82de32e258c9e41ba69471d35d2dd28aa044b (diff)
downloadvyos-1x-2411cf35b3cf8a4b11a714ff426e98bc1872e3c3.tar.gz
vyos-1x-2411cf35b3cf8a4b11a714ff426e98bc1872e3c3.zip
frr: combine all templates in frr directory
Diffstat (limited to 'data/templates/frr/static_mcast.frr.tmpl')
-rw-r--r--data/templates/frr/static_mcast.frr.tmpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/data/templates/frr/static_mcast.frr.tmpl b/data/templates/frr/static_mcast.frr.tmpl
new file mode 100644
index 000000000..86d619ab0
--- /dev/null
+++ b/data/templates/frr/static_mcast.frr.tmpl
@@ -0,0 +1,20 @@
+!
+{% for route_gr in old_mroute -%}
+{% for nh in old_mroute[route_gr] -%}
+{% if old_mroute[route_gr][nh] -%}
+no ip mroute {{ route_gr }} {{ nh }} {{ old_mroute[route_gr][nh] }}
+{% else -%}
+no ip mroute {{ route_gr }} {{ nh }}
+{% endif -%}
+{% endfor -%}
+{% endfor -%}
+{% for route_gr in mroute -%}
+{% for nh in mroute[route_gr] -%}
+{% if mroute[route_gr][nh] -%}
+ip mroute {{ route_gr }} {{ nh }} {{ mroute[route_gr][nh] }}
+{% else -%}
+ip mroute {{ route_gr }} {{ nh }}
+{% endif -%}
+{% endfor -%}
+{% endfor -%}
+!