blob: 15f7d79d162cac4696ebb9336e57ffced0ce3aba [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
56
57
Jerry Floodd40619e2017-08-24 09:38:48 -040058This 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 -050059"template" maps to the parameters in the preload_paramenters.py
Jerry Flood3fc36a32017-10-11 11:09:19 -040060 - GLOBAL_PRELOAD_PARAMETERS[<testcase>][<template>] -
61 i.e. GLOBAL_PRELOAD_PARAMETERS['Demo'][dnsscaling_preload.template']
Jerry Floodd40619e2017-08-24 09:38:48 -040062'''
Jerry Flood3fc36a32017-10-11 11:09:19 -040063GLOBAL_SERVICE_TEMPLATE_MAPPING = {
Jerry Flood3a169a32017-12-01 12:39:10 -050064 "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040065 "vLB" : [{"isBase" : "true", "template" : "vlb_preload.template", "name_pattern": "base_vlb"},
66 {"isBase" : "false", "template" : "dnsscaling_preload.template", "name_pattern": "dnsscaling", "prefix" : "vDNS_"}],
Jerry Flood3a169a32017-12-01 12:39:10 -050067 "vVG" : [{"isBase" : "true", "template" : "vvg_preload.template", "name_pattern": "base_vvg"}],
68 "vCPE" : [{"isBase" : "true", "template" : "vcpe_preload.template", "name_pattern": "base_clearwater"}],
69 "vFWSNK" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"}],
70 "vPKG" : [{"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
Bin Yang326219a2018-05-31 05:35:33 +000071 "vFWCL" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"},
72 {"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
Brian Freemaneef7c6f2018-11-16 18:42:21 -050073 "vCPEInfra" : [{"isBase" : "true", "template" : "vcpe_infra_preload.template", "name_pattern": "base_infra"}],
74 "vCPEvBNG" : [{"isBase" : "true", "template" : "vcpe_vbng_preload.template", "name_pattern": "base_vbng"}],
75 "vCPEvBRGEMU" : [{"isBase" : "true", "template" : "vcpe_vbrgemu_preload.template", "name_pattern": "base_vbrgemu"}],
76 "vCPEvGMUX" : [{"isBase" : "true", "template" : "vcpe_vgmux_preload.template", "name_pattern": "base_vgmux"}],
77 "vCPEvGW" : [{"isBase" : "true", "template" : "vcpe_vgw_preload.template", "name_pattern": "base_vgw"}],
bdfreeman1421b2a49512018-11-25 07:32:19 -050078 "vCPEResCust" : [{"isBase" : "true", "template" : "vcpe_vgw_preload.template", "name_pattern": "base_vgw"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040079}
DR695Hccff30b2017-02-17 18:44:24 -050080
Jerry Floodd40619e2017-08-24 09:38:48 -040081'''
82Used by the Heatbridge Validate Query to A&AI to locate the vserver name
83'''
DR695Hccff30b2017-02-17 18:44:24 -050084GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0',
85 "vLB" : 'vlb_name_0',
Jerry Flood3fc36a32017-10-11 11:09:19 -040086 "vVG" : '',
Brian Freemanabf7ac22018-05-20 19:49:34 -050087 "vCPE" : 'vgw_name_0',
Brian Freeman108048b2018-05-22 13:13:05 -050088 "vCPEvGW" : 'vgw_name_0',
bdfreeman1421b2a49512018-11-25 07:32:19 -050089 "vCPEResCust" : 'vgw_name_0',
Brian Freeman108048b2018-05-22 13:13:05 -050090 "vCPEvDNS" : 'vdns_name_0',
91 "vCPEvAAA" : 'vaaa_name_0',
92 "vCPEvWEB" : 'vweb_name_0',
93 "vCPEvDHCP" : 'vdhcp_name_0',
Yang Xu875ab322018-11-21 22:38:18 -050094 "vCPEvGMUX" : 'vgmux_name_0',
Jerry Flood3a169a32017-12-01 12:39:10 -050095 "vFWSNK" : 'vfw_name_0',
96 "vPKG" : 'vpg_name_0',
DR695Hccff30b2017-02-17 18:44:24 -050097 }
Brian Freemaneef7c6f2018-11-16 18:42:21 -050098