import json import os.path ''' This metadata identifies the folders to be zipped and uploaded to SDC for model distribution for a given VNF ''' GLOBAL_SERVICE_FOLDER_MAPPING = {"vFW" : ['vFW'], \ "vLB" : ['vLB'], \ "vVG" : ['vVG'], \ "vCPE" : ['vCPE/infra', 'vCPE/vbng', 'vCPE/vbrgemu', 'vCPE/vgmux', 'vCPE/vgw'], "vFWCL" : ['vFWCL/vFWSNK', 'vFWCL/vPKG'], "vFWNG" : ['vFW_NextGen/templates'], "vCPEInfra" : ['vCPE/infra'], "vCPEvBNG" : ['vCPE/vbng'], "vCPEvBRGEMU" : ['vCPE/vbrgemu'], "vCPEvGMUX" : ['vCPE/vgmux'], "vCPEvGW" : ['vCPE/vgw'], "vCPEResCust" : ['vCPE/vgw'], } ''' Map the service to the list of VNFs to be orchestrated ''' GLOBAL_SERVICE_VNF_MAPPING = { "vFW" : ['vFW'], "vLB" : ['vLB'], "vVG" : ['vVG'], "vCPE" : ['vCPE'], "vFWCL" : ['vFWCLvFWSNK', 'vFWCLvPKG'], "vFWNG" : ['vFWNG'], "vCPEInfra" : ['vCPEInfra'], "vCPEvBNG" : ['vCPEvBNG'], "vCPEvBRGEMU" : ['vCPEvBRGEMU'], "vCPEvGMUX" : ['vCPEvGMUX'], "vCPEvGW" : ['vCPEvGW'], "vCPERestCust" : ['vCPEvGW'], } ''' Map the service to the list of Generic Neutron Networks to be orchestrated ''' GLOBAL_SERVICE_GEN_NEUTRON_NETWORK_MAPPING = { "vCPEInfra" : ['CPE_SIGNAL','CPE_PUBLIC'], "vCPEvBNG" : ['BRG_BNG', 'BNG_MUX'], "vCPEvGMUX" : ['MUX_GW'], "vCPEvBRGEMU" :[], "vCPEvGW" :[], "vCPERestCust" :[], "vFW" :[], "vLB" :[], "vVG" :[], "vFWCL" :[], "vFWNG" :[], } ''' Map the service to the list of Deployment Artifacts for Closed Loop Control ''' GLOBAL_SERVICE_DEPLOYMENT_ARTIFACT_MAPPING = { "vCPEInfra" : [], "vCPEvBNG" : [], "vCPEvGMUX" : [], "vCPEvBRGEMU" :[], "vCPEvGW" :[], "vCPERestCust" :[], "vFW" :[], "vLB" :['tca_docker_k8s_v4.yaml'], "vVG" :[], "vFWCL" :[], "vFWNG" :[], } ''' This metadata identifes the preloads that need to be done for a VNF as there may be more than one (vLB) "template" maps to the parameters in the preload_paramenters.py - GLOBAL_PRELOAD_PARAMETERS[][