summaryrefslogtreecommitdiff
path: root/data/templates/frr/static_mcast.frr.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-14 21:24:08 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-14 21:29:44 +0200
commitdf045eca2f6c7a9257de5d32723d9ccc799346e5 (patch)
treebabc4f0a9a6fe51bd0e9ee357a8618f02b08c20b /data/templates/frr/static_mcast.frr.j2
parentc944188a7e220141207687d04db74eb3a3961e7a (diff)
downloadvyos-1x-df045eca2f6c7a9257de5d32723d9ccc799346e5.tar.gz
vyos-1x-df045eca2f6c7a9257de5d32723d9ccc799346e5.zip
frr: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/frr/static_mcast.frr.j2')
-rw-r--r--data/templates/frr/static_mcast.frr.j220
1 files changed, 20 insertions, 0 deletions
diff --git a/data/templates/frr/static_mcast.frr.j2 b/data/templates/frr/static_mcast.frr.j2
new file mode 100644
index 000000000..491d4b54a
--- /dev/null
+++ b/data/templates/frr/static_mcast.frr.j2
@@ -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 %}
+!