blob: 52f1ca1edfbe2871c036f55e4562a6f38f5be490 [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'],
9 }
10
11'''
12Map the service to the list of VNFs to be orchestrated
13'''
14GLOBAL_SERVICE_VNF_MAPPING = {
15 "vFW" : ['vFW'],
16 "vLB" : ['vLB'],
17 "vVG" : ['vVG'],
18 "vCPE" : ['vCPE'],
19 "vFWCL" : ['vFWSNK', 'vPKG'],
DR695Hccff30b2017-02-17 18:44:24 -050020 }
Jerry Floodd40619e2017-08-24 09:38:48 -040021
22'''
23This 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 -050024"template" maps to the parameters in the preload_paramenters.py
Jerry Flood3fc36a32017-10-11 11:09:19 -040025 - GLOBAL_PRELOAD_PARAMETERS[<testcase>][<template>] -
26 i.e. GLOBAL_PRELOAD_PARAMETERS['Demo'][dnsscaling_preload.template']
Jerry Floodd40619e2017-08-24 09:38:48 -040027'''
Jerry Flood3fc36a32017-10-11 11:09:19 -040028GLOBAL_SERVICE_TEMPLATE_MAPPING = {
Jerry Flood3a169a32017-12-01 12:39:10 -050029 "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040030 "vLB" : [{"isBase" : "true", "template" : "vlb_preload.template", "name_pattern": "base_vlb"},
31 {"isBase" : "false", "template" : "dnsscaling_preload.template", "name_pattern": "dnsscaling", "prefix" : "vDNS_"}],
Jerry Flood3a169a32017-12-01 12:39:10 -050032 "vVG" : [{"isBase" : "true", "template" : "vvg_preload.template", "name_pattern": "base_vvg"}],
33 "vCPE" : [{"isBase" : "true", "template" : "vcpe_preload.template", "name_pattern": "base_clearwater"}],
34 "vFWSNK" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"}],
35 "vPKG" : [{"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040036}
DR695Hccff30b2017-02-17 18:44:24 -050037
Jerry Floodd40619e2017-08-24 09:38:48 -040038'''
39Used by the Heatbridge Validate Query to A&AI to locate the vserver name
40'''
DR695Hccff30b2017-02-17 18:44:24 -050041GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0',
42 "vLB" : 'vlb_name_0',
Jerry Flood3fc36a32017-10-11 11:09:19 -040043 "vVG" : '',
Brian Freemanabf7ac22018-05-20 19:49:34 -050044 "vCPE" : 'vgw_name_0',
Jerry Flood3a169a32017-12-01 12:39:10 -050045 "vFWSNK" : 'vfw_name_0',
46 "vPKG" : 'vpg_name_0',
DR695Hccff30b2017-02-17 18:44:24 -050047 }