From 89daeff92b142f64609b7948278e7390df1015a2 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Wed, 12 Feb 2025 17:46:32 +0000
Subject: [PATCH 1/3] Add static dsc.0 interface config in IES template

---
 .../roles/bc_templates/routers/nokia/router/ies.j2    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/ies.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/ies.j2
index 2a024feb..50418786 100644
--- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/ies.j2
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/ies.j2
@@ -7,5 +7,16 @@
     {% endif %}
     <service-id>{{ ies.service_id }}</service-id>
     <customer>{{ ies.customer_id }}</customer>
+    <interface 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" alu:operation="replace">
+        <interface-name>dsc.0</interface-name>
+        <admin-state>enable</admin-state>
+        <loopback>true</loopback>
+        <ipv4>
+            <primary>
+                <address>192.0.2.112</address>
+                <prefix-length>32</prefix-length>
+            </primary>
+        </ipv4>
+</interface>
 </ies>
 {% endfor %}
-- 
GitLab


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 2/3] 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


From 8e2e509c5e3252afdf8432e955f3c0bafbf750f9 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Wed, 12 Feb 2025 17:53:11 +0000
Subject: [PATCH 3/3] Add dsc.0 to PIM

---
 .../roles/bc_templates/routers/nokia/router/pim.j2         | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/pim.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/pim.j2
index ccf8e8d5..8b56f5ba 100644
--- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/pim.j2
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/pim.j2
@@ -27,5 +27,12 @@
                 <interface>
                     <interface-name>system</interface-name>
                 </interface>
+                <interface>
+                <interface-name>dsc.0</interface-name>
+                    <admin-state>enable</admin-state>
+                    <ipv4>
+                        <multicast>true</multicast>
+                    </ipv4>
+                </interface>
             </pim>
 
-- 
GitLab