Use interfaces_backup for healing 97/12197/3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 13 Jun 2022 08:02:51 +0000 (10:02 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 13 Jun 2022 13:50:13 +0000 (15:50 +0200)
Change-Id: Idb2d950963754259163e23a0ed9ef1aafc3ce45e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
NG-RO/osm_ng_ro/ns.py
releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml [new file with mode: 0644]

index 0a40367..2b53f19 100644 (file)
@@ -1230,7 +1230,9 @@ class Ns(object):
                     "floating_ip",
                 )
             }
                     "floating_ip",
                 )
             }
-            existing_ifaces = existing_vdu["vim_info"][target_id].get("interfaces", [])
+            existing_ifaces = existing_vdu["vim_info"][target_id].get(
+                "interfaces_backup", []
+            )
             net_id = next(
                 (
                     i["vim_net_id"]
             net_id = next(
                 (
                     i["vim_net_id"]
diff --git a/releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml b/releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml
new file mode 100644 (file)
index 0000000..e6f14be
--- /dev/null
@@ -0,0 +1,21 @@
+#######################################################################################
+# 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.
+#######################################################################################
+---
+other:
+  - |
+    Update methods used for recreating VDU (healing) to use the field
+    interfaces_backup under vdur[].vim_info.target_id.