self.update_db_2("vnfrs", vnfr_data.get("_id"), vnfr_update_dict)
+ kdu_config = kdud.get("kdu-configuration")
+ if kdu_config and kdu_config.get("initial-config-primitive") and kdu_config.get("juju") is None:
+ initial_config_primitive_list = kdu_config.get("initial-config-primitive")
+ initial_config_primitive_list.sort(key=lambda val: int(val["seq"]))
+
+ for initial_config_primitive in initial_config_primitive_list:
+ primitive_params_ = self._map_primitive_params(initial_config_primitive, {}, {})
+
+ await asyncio.wait_for(
+ self.k8scluster_map[k8sclustertype].exec_primitive(
+ cluster_uuid=k8s_instance_info["k8scluster-uuid"],
+ kdu_instance=kdu_instance,
+ primitive_name=initial_config_primitive["name"],
+ params=primitive_params_, db_dict={}),
+ timeout=timeout)
+
except Exception as e:
# Prepare update db with error and raise exception
try: