self._logger.error(msg)
raise ValueError(msg)
# Repo search is based on 'name' entry in index.yaml. It is mandatory then
- fields["name"] = aux_dict.get("name", aux_dict["product-name"])
+ fields["name"] = aux_dict.get("name", aux_dict.get("product-name"))
fields["id"] = aux_dict.get("id")
fields["description"] = aux_dict.get("description")
fields["vendor"] = aux_dict.get("vendor")
self._logger.debug(f"Descriptor data: {descriptor_data}")
validation = validation_im()
desc_type, descriptor_dict = validation.yaml_validation(descriptor_data)
+ self._logger.debug(f"Descriptor type: {desc_type}")
+ self._logger.debug(f"Descriptor dict: {descriptor_dict}")
try:
validation_im.pyangbind_validation(self, desc_type, descriptor_dict)
except Exception as e:
self._logger.error(e, exc_info=True)
raise e
descriptor_type_ref = list(descriptor_dict.keys())[0].lower()
+ self._logger.debug(f"Descriptor type ref: {descriptor_type_ref}")
if "vnf" in descriptor_type_ref:
package_type = "vnf"
elif "nst" in descriptor_type_ref:
self._logger.error(msg)
raise ValueError(msg)
self._logger.debug("Descriptor: {}".format(descriptor_dict))
+ self._logger.debug("Path: {}".format(path))
+ self._logger.debug("Package type: {}".format(package_type))
fields = self.fields_building(descriptor_dict, path, package_type)
self._logger.debug(f"Descriptor successfully validated {fields}")
return (