blob: fb06b44858c35459936a607230a1648789bae1e4 [file] [log] [blame]
Jerry Floodd40619e2017-08-24 09:38:48 -04001'''
2This metadata identifies the folders to be zipped and uploaded to SDC for model distribution for a given VNF
3'''
Jerry Flood8c636292017-10-30 13:03:31 -04004GLOBAL_SERVICE_FOLDER_MAPPING = {"vFW" : ['vFW'], \
5 "vLB" : ['vLB'], \
6 "vVG" : ['vVG'], \
Jerry Flood3a169a32017-12-01 12:39:10 -05007 "vCPE" : ['vCPE/infra', 'vCPE/vbng', 'vCPE/vbrgemu', 'vCPE/vgmux', 'vCPE/vgw'],
8 "vFWCL" : ['vFWCL/vFWSNK', 'vFWCL/vPKG'],
Yang Xu2ec80382018-11-01 12:30:37 -04009 "vFWNG" : ['vFW_NextGen/templates'],
Brian Freemaneef7c6f2018-11-16 18:42:21 -050010 "vCPEInfra" : ['vCPE/infra'],
11 "vCPEvBNG" : ['vCPE/vbng'],
12 "vCPEvBRGEMU" : ['vCPE/vbrgemu'],
13 "vCPEvGMUX" : ['vCPE/vgmux'],
14 "vCPEvGW" : ['vCPE/vgw'],
bdfreeman1421b2a49512018-11-25 07:32:19 -050015 "vCPEResCust" : ['vCPE/vgw'],
Jerry Flood3a169a32017-12-01 12:39:10 -050016 }
17
18'''
19Map the service to the list of VNFs to be orchestrated
20'''
21GLOBAL_SERVICE_VNF_MAPPING = {
22 "vFW" : ['vFW'],
23 "vLB" : ['vLB'],
24 "vVG" : ['vVG'],
25 "vCPE" : ['vCPE'],
26 "vFWCL" : ['vFWSNK', 'vPKG'],
Yang Xu2ec80382018-11-01 12:30:37 -040027 "vFWNG" : ['vFWNG'],
Brian Freemaneef7c6f2018-11-16 18:42:21 -050028 "vCPEInfra" : ['vCPEInfra'],
29 "vCPEvBNG" : ['vCPEvBNG'],
30 "vCPEvBRGEMU" : ['vCPEvBRGEMU'],
31 "vCPEvGMUX" : ['vCPEvGMUX'],
32 "vCPEvGW" : ['vCPEvGW'],
bdfreeman1421b2a49512018-11-25 07:32:19 -050033 "vCPERestCust" : ['vCPEvGW'],
DR695Hccff30b2017-02-17 18:44:24 -050034 }
Jerry Floodd40619e2017-08-24 09:38:48 -040035
36'''
Brian Freemaneef7c6f2018-11-16 18:42:21 -050037
38Map the service to the list of Generic Neutron Networks to be orchestrated
39
40'''
41GLOBAL_SERVICE_GEN_NEUTRON_NETWORK_MAPPING = {
42 "vCPEInfra" : ['CPE_SIGNAL','CPE_PUBLIC'],
43 "vCPEvBNG" : ['BRG_BNG', 'BNG_MUX'],
44 "vCPEvGMUX" : ['MUX_GW'],
45 "vCPEvBRGEMU" :[],
46 "vCPEvGW" :[],
bdfreeman1421b2a49512018-11-25 07:32:19 -050047 "vCPERestCust" :[],
Brian Freemaneef7c6f2018-11-16 18:42:21 -050048 "vFW" :[],
49 "vLB" :[],
50 "vVG" :[],
51 "vFWCL" :[],
52 "vFWNG" :[],
53}
54'''
55
Brian Freeman2e1d0ff2019-01-23 09:38:13 -050056Map the service to the list of Deployment Artifacts for Closed Loop Control
57
58'''
59GLOBAL_SERVICE_DEPLOYMENT_ARTIFACT_MAPPING = {
60 "vCPEInfra" : [],
61 "vCPEvBNG" : [],
62 "vCPEvGMUX" : [],
63 "vCPEvBRGEMU" :[],
64 "vCPEvGW" :[],
65 "vCPERestCust" :[],
66 "vFW" :[],
67 "vLB" :['tca_docker_k8s_v4.yaml'],
68 "vVG" :[],
69 "vFWCL" :[],
70 "vFWNG" :[],
71}
72'''
73
Brian Freemaneef7c6f2018-11-16 18:42:21 -050074
75
Jerry Floodd40619e2017-08-24 09:38:48 -040076This metadata identifes the preloads that need to be done for a VNF as there may be more than one (vLB)
Jerry Flood3a169a32017-12-01 12:39:10 -050077"template" maps to the parameters in the preload_paramenters.py
Jerry Flood3fc36a32017-10-11 11:09:19 -040078 - GLOBAL_PRELOAD_PARAMETERS[<testcase>][<template>] -
79 i.e. GLOBAL_PRELOAD_PARAMETERS['Demo'][dnsscaling_preload.template']
Jerry Floodd40619e2017-08-24 09:38:48 -040080'''
Jerry Flood3fc36a32017-10-11 11:09:19 -040081GLOBAL_SERVICE_TEMPLATE_MAPPING = {
Brian Freeman2e1d0ff2019-01-23 09:38:13 -050082 "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040083 "vLB" : [{"isBase" : "true", "template" : "vlb_preload.template", "name_pattern": "base_vlb"},
84 {"isBase" : "false", "template" : "dnsscaling_preload.template", "name_pattern": "dnsscaling", "prefix" : "vDNS_"}],
Jerry Flood3a169a32017-12-01 12:39:10 -050085 "vVG" : [{"isBase" : "true", "template" : "vvg_preload.template", "name_pattern": "base_vvg"}],
86 "vCPE" : [{"isBase" : "true", "template" : "vcpe_preload.template", "name_pattern": "base_clearwater"}],
87 "vFWSNK" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"}],
88 "vPKG" : [{"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
Bin Yang326219a2018-05-31 05:35:33 +000089 "vFWCL" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"},
90 {"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
Brian Freemaneef7c6f2018-11-16 18:42:21 -050091 "vCPEInfra" : [{"isBase" : "true", "template" : "vcpe_infra_preload.template", "name_pattern": "base_infra"}],
92 "vCPEvBNG" : [{"isBase" : "true", "template" : "vcpe_vbng_preload.template", "name_pattern": "base_vbng"}],
93 "vCPEvBRGEMU" : [{"isBase" : "true", "template" : "vcpe_vbrgemu_preload.template", "name_pattern": "base_vbrgemu"}],
94 "vCPEvGMUX" : [{"isBase" : "true", "template" : "vcpe_vgmux_preload.template", "name_pattern": "base_vgmux"}],
95 "vCPEvGW" : [{"isBase" : "true", "template" : "vcpe_vgw_preload.template", "name_pattern": "base_vgw"}],
bdfreeman1421b2a49512018-11-25 07:32:19 -050096 "vCPEResCust" : [{"isBase" : "true", "template" : "vcpe_vgw_preload.template", "name_pattern": "base_vgw"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040097}
DR695Hccff30b2017-02-17 18:44:24 -050098
Jerry Floodd40619e2017-08-24 09:38:48 -040099'''
100Used by the Heatbridge Validate Query to A&AI to locate the vserver name
101'''
DR695Hccff30b2017-02-17 18:44:24 -0500102GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0',
103 "vLB" : 'vlb_name_0',
Jerry Flood3fc36a32017-10-11 11:09:19 -0400104 "vVG" : '',
Brian Freemanabf7ac22018-05-20 19:49:34 -0500105 "vCPE" : 'vgw_name_0',
Brian Freeman108048b2018-05-22 13:13:05 -0500106 "vCPEvGW" : 'vgw_name_0',
bdfreeman1421b2a49512018-11-25 07:32:19 -0500107 "vCPEResCust" : 'vgw_name_0',
Brian Freeman108048b2018-05-22 13:13:05 -0500108 "vCPEvDNS" : 'vdns_name_0',
109 "vCPEvAAA" : 'vaaa_name_0',
110 "vCPEvWEB" : 'vweb_name_0',
111 "vCPEvDHCP" : 'vdhcp_name_0',
Yang Xu875ab322018-11-21 22:38:18 -0500112 "vCPEvGMUX" : 'vgmux_name_0',
Jerry Flood3a169a32017-12-01 12:39:10 -0500113 "vFWSNK" : 'vfw_name_0',
114 "vPKG" : 'vpg_name_0',
DR695Hccff30b2017-02-17 18:44:24 -0500115 }
Brian Freemaneef7c6f2018-11-16 18:42:21 -0500116