From 8ed3b5dee0572d49bc15fce50e2c2e900074afb8 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Wed, 12 Feb 2025 17:52:52 +0000
Subject: [PATCH] Add static IGMP config

---
 .../bc_templates/routers/nokia/router/igmp.j2   | 17 +++++++++++++++++
 .../routers/nokia/router/router_base.j2         |  1 +
 2 files changed, 18 insertions(+)
 create mode 100644 geant/gap_ansible/roles/bc_templates/routers/nokia/router/igmp.j2

diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/igmp.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/igmp.j2
new file mode 100644
index 00000000..59d3d7a2
--- /dev/null
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/igmp.j2
@@ -0,0 +1,17 @@
+
+        <igmp xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes">
+           <interface alu:operation="replace">
+                <ip-interface-name>dsc.0</ip-interface-name>
+                <static>
+                    <group>
+                        <group-address>232.223.222.1</group-address>
+                        <source>
+                            <source-address>193.17.9.3</source-address>
+                        </source>
+                        <source>
+                            <source-address>212.201.139.66</source-address>
+                        </source>
+                    </group>
+                </static>
+            </interface>
+        </igmp>
diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2
index 72e72de5..b9ffc82f 100644
--- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2
@@ -44,6 +44,7 @@
             </rsvp>
             {% include 'router/isis.j2' %}
             {% include 'router/pim.j2' %}
+            {% include 'router/igmp.j2' %}
         {% endif %}
             {% include 'router/base_static_routes.j2' %}
             {% include 'router/bgp.j2' %}
-- 
GitLab