From: garciadeblas Date: Mon, 13 Jun 2022 08:02:51 +0000 (+0200) Subject: Use interfaces_backup for healing X-Git-Tag: v12.0.0rc1~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F12197%2F3;p=osm%2FRO.git Use interfaces_backup for healing Change-Id: Idb2d950963754259163e23a0ed9ef1aafc3ce45e Signed-off-by: garciadeblas --- diff --git a/NG-RO/osm_ng_ro/ns.py b/NG-RO/osm_ng_ro/ns.py index 0a403675..2b53f19d 100644 --- a/NG-RO/osm_ng_ro/ns.py +++ b/NG-RO/osm_ng_ro/ns.py @@ -1230,7 +1230,9 @@ class Ns(object): "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"] diff --git a/releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml b/releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml new file mode 100644 index 00000000..e6f14bef --- /dev/null +++ b/releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml @@ -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.