# permission. # # This work has been performed in the framework of the 5GTANGO project, # funded by the European Commission under Grant number through # the Horizon 2020 and 5G-PPP programmes. The authors would like to # acknowledge the contributions of their colleagues of the 5GTANGO # partner consortium (www.5gtango.eu). import os import yaml import logging from tngsdk.validation import event # import event log = logging.getLogger(__name__) evtlog = event.get_logger('validator.events') def read_descriptor_files(files): """ Loads the VNF descriptors provided in the file list. It builds a dictionary of the loaded descriptor files. Each entry has the key of the VNF combo ID, in the format 'vendor.name.version'. :param files: filename list of descriptors :return: Dictionary of descriptors. None if unsuccessful. """ descriptors = {} for file in files: content = read_descriptor_file(file) if not content: continue
# This work has been performed in the framework of the 5GTANGO project, # funded by the European Commission under Grant number through # the Horizon 2020 and 5G-PPP programmes. The authors would like to # acknowledge the contributions of their colleagues of the 5GTANGO # partner consortium (www.5gtango.eu). import os import yaml import logging from tngsdk.validation import event # import event from tngsdk.validation.logger import TangoLogger LOG = TangoLogger.getLogger(__name__) evtLOG = event.get_logger('validator.events') def read_descriptor_files(files): """ Loads the VNF descriptors provided in the file list. It builds a dictionary of the loaded descriptor files. Each entry has the key of the VNF combo ID, in the format 'vendor.name.version'. :param files: filename list of descriptors :return: Dictionary of descriptors. None if unsuccessful. """ descriptors = {} for file in files: content = read_descriptor_file(file) if not content: continue