Fix bug 2281: Healing operation Failing for Dual stack IP feature 29/14029/2 v14.0
authorrahul <rahul.k4@tataelxsi.co.in>
Wed, 30 Aug 2023 09:36:49 +0000 (15:06 +0530)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 14 Jun 2024 10:02:09 +0000 (12:02 +0200)
Change-Id: I80b56dd9ea64e0a4974a0b6c93461fcd84425ae6
Signed-off-by: rahul <rahul.k4@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
NG-RO/osm_ng_ro/ns.py
releasenotes/notes/bug_fix_2281_Healing_operation_Failing_for_Dual_stack_IP_feature-598fc9f01d71c6aa.yaml [new file with mode: 0644]

index 84a800e..a1d2736 100644 (file)
@@ -1775,7 +1775,11 @@ class Ns(object):
                 net_item["model"] = interface.get("type")
 
             if interface.get("ip-address"):
-                net_item["ip_address"] = interface["ip-address"]
+                dual_ip = interface.get("ip-address").split(";")
+                if len(dual_ip) == 2:
+                    net_item["ip_address"] = dual_ip
+                else:
+                    net_item["ip_address"] = interface["ip-address"]
 
             if interface.get("mac-address"):
                 net_item["mac_address"] = interface["mac-address"]
diff --git a/releasenotes/notes/bug_fix_2281_Healing_operation_Failing_for_Dual_stack_IP_feature-598fc9f01d71c6aa.yaml b/releasenotes/notes/bug_fix_2281_Healing_operation_Failing_for_Dual_stack_IP_feature-598fc9f01d71c6aa.yaml
new file mode 100644 (file)
index 0000000..008cd9f
--- /dev/null
@@ -0,0 +1,25 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
+---
+
+fixes:
+  - |
+    This change aims to fix auto heal operation failing for dual stack NS.
+    This is happening because the function "_process_recreate_vdu_params"
+    in osm-ngro/ns.py still expects a single IP instead of a list of IPs,
+    as it was possible after the feature that enable dual stack IPs for
+    VNF interfaces.