Fixes kdu-name on kdur indexing for instantiating KDUs 83/10083/1
authorgarciaale <agarcia@whitestack.com>
Mon, 7 Dec 2020 21:24:03 +0000 (18:24 -0300)
committergarciaale <agarcia@whitestack.com>
Mon, 7 Dec 2020 21:24:03 +0000 (18:24 -0300)
Change-Id: Ida6dd3b900eea05badffc1b405985e4dd813c5e5
Signed-off-by: garciaale <agarcia@whitestack.com>
osm_nbi/instance_topics.py

index 26bd26a..c47ed9b 100644 (file)
@@ -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"] = []