From bf2351992d12a848816de255055682bcb9ab434f Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 13 Jun 2022 10:02:51 +0200 Subject: [PATCH] Use interfaces_backup for healing Change-Id: Idb2d950963754259163e23a0ed9ef1aafc3ce45e Signed-off-by: garciadeblas --- NG-RO/osm_ng_ro/ns.py | 4 +++- ...se_interfaces_backup-1e52afa27d3b04a1.yaml | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/use_interfaces_backup-1e52afa27d3b04a1.yaml 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. -- 2.25.1