blob: ff41fad31e4c67d606088080b7a561b5bb0a5f3d [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"}],
Bin Yang326219a2018-05-31 05:35:33 +000036 "vFWCL" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"},
37 {"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
Jerry Flood3fc36a32017-10-11 11:09:19 -040038}
DR695Hccff30b2017-02-17 18:44:24 -050039
Jerry Floodd40619e2017-08-24 09:38:48 -040040'''
41Used by the Heatbridge Validate Query to A&AI to locate the vserver name
42'''
DR695Hccff30b2017-02-17 18:44:24 -050043GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0',
44 "vLB" : 'vlb_name_0',
Jerry Flood3fc36a32017-10-11 11:09:19 -040045 "vVG" : '',
Brian Freemanabf7ac22018-05-20 19:49:34 -050046 "vCPE" : 'vgw_name_0',
Brian Freeman108048b2018-05-22 13:13:05 -050047 "vCPEvGW" : 'vgw_name_0',
48 "vCPEvDNS" : 'vdns_name_0',
49 "vCPEvAAA" : 'vaaa_name_0',
50 "vCPEvWEB" : 'vweb_name_0',
51 "vCPEvDHCP" : 'vdhcp_name_0',
Jerry Flood3a169a32017-12-01 12:39:10 -050052 "vFWSNK" : 'vfw_name_0',
53 "vPKG" : 'vpg_name_0',
DR695Hccff30b2017-02-17 18:44:24 -050054 }