From: garciaale Date: Mon, 7 Dec 2020 21:24:03 +0000 (-0300) Subject: Fixes kdu-name on kdur indexing for instantiating KDUs X-Git-Tag: release-v9.0-start~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=bc2352651db7e6c1d43462cb97b13df9b7518818;p=osm%2FNBI.git Fixes kdu-name on kdur indexing for instantiating KDUs Change-Id: Ida6dd3b900eea05badffc1b405985e4dd813c5e5 Signed-off-by: garciaale --- diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 26bd26a..c47ed9b 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -528,7 +528,7 @@ class NsrTopic(BaseTopic): if kdu_params and kdu_params.get("config-units"): kdur["config-units"] = kdu_params["config-units"] - kdu_model_data = all_kdu_models[all_kdu_profiles_models[kdur["name"]]] + kdu_model_data = all_kdu_models[all_kdu_profiles_models[kdur["kdu-name"]]] kdur[kdu_model_data.get("kdu-model-type")] = kdu_model or kdu_model_data if not vnfr_descriptor.get("kdur"): vnfr_descriptor["kdur"] = []