summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-21 20:00:53 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-21 20:16:31 +0000
commit022631524da4ccd03a22085fce88f04154ff5a2e (patch)
tree674e2e0d9d227b06e6c428403efae923a8ee6ad0 /data/templates
parent3dfcc251b929d253867714694cac58158eecc036 (diff)
downloadvyos-1x-022631524da4ccd03a22085fce88f04154ff5a2e.tar.gz
vyos-1x-022631524da4ccd03a22085fce88f04154ff5a2e.zip
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 -%}
+!