summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-22 07:36:05 +0200
committerGitHub <noreply@github.com>2020-04-22 07:36:05 +0200
commit43e606d88fd88f4d82720cb74b721903a4ebe9f3 (patch)
tree40ac42e080f22fe5c4725bc9e0169883a0b29dcc /data/templates
parenta6d6dcfa9d0a1e49079c23fa6cad804185afa589 (diff)
parent022631524da4ccd03a22085fce88f04154ff5a2e (diff)
downloadvyos-1x-43e606d88fd88f4d82720cb74b721903a4ebe9f3.tar.gz
vyos-1x-43e606d88fd88f4d82720cb74b721903a4ebe9f3.zip
Merge pull request #368 from DmitriyEshenko/mroute-pim
mroute: T2364: Implement CLI commands for mroute
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr-mcast/static_mcast.frr.tmpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/data/templates/frr-mcast/static_mcast.frr.tmpl b/data/templates/frr-mcast/static_mcast.frr.tmpl
new file mode 100644
index 000000000..86d619ab0
--- /dev/null
+++ b/data/templates/frr-mcast/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 -%}
+!