From bc2352651db7e6c1d43462cb97b13df9b7518818 Mon Sep 17 00:00:00 2001 From: garciaale Date: Mon, 7 Dec 2020 18:24:03 -0300 Subject: [PATCH] Fixes kdu-name on kdur indexing for instantiating KDUs Change-Id: Ida6dd3b900eea05badffc1b405985e4dd813c5e5 Signed-off-by: garciaale --- osm_nbi/instance_topics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] = [] -- 2.25.1