Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 1 | ''' |
| 2 | This metadata identifies the folders to be zipped and uploaded to SDC for model distribution for a given VNF |
| 3 | ''' |
Jerry Flood | 8c63629 | 2017-10-30 13:03:31 -0400 | [diff] [blame] | 4 | GLOBAL_SERVICE_FOLDER_MAPPING = {"vFW" : ['vFW'], \ |
| 5 | "vLB" : ['vLB'], \ |
| 6 | "vVG" : ['vVG'], \ |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 7 | "vCPE" : ['vCPE/infra', 'vCPE/vbng', 'vCPE/vbrgemu', 'vCPE/vgmux', 'vCPE/vgw'], |
| 8 | "vFWCL" : ['vFWCL/vFWSNK', 'vFWCL/vPKG'], |
| 9 | } |
| 10 | |
| 11 | ''' |
| 12 | Map the service to the list of VNFs to be orchestrated |
| 13 | ''' |
| 14 | GLOBAL_SERVICE_VNF_MAPPING = { |
| 15 | "vFW" : ['vFW'], |
| 16 | "vLB" : ['vLB'], |
| 17 | "vVG" : ['vVG'], |
| 18 | "vCPE" : ['vCPE'], |
| 19 | "vFWCL" : ['vFWSNK', 'vPKG'], |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 20 | } |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 21 | |
| 22 | ''' |
| 23 | This metadata identifes the preloads that need to be done for a VNF as there may be more than one (vLB) |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 24 | "template" maps to the parameters in the preload_paramenters.py |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 25 | - GLOBAL_PRELOAD_PARAMETERS[<testcase>][<template>] - |
| 26 | i.e. GLOBAL_PRELOAD_PARAMETERS['Demo'][dnsscaling_preload.template'] |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 27 | ''' |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 28 | GLOBAL_SERVICE_TEMPLATE_MAPPING = { |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 29 | "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}], |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 30 | "vLB" : [{"isBase" : "true", "template" : "vlb_preload.template", "name_pattern": "base_vlb"}, |
| 31 | {"isBase" : "false", "template" : "dnsscaling_preload.template", "name_pattern": "dnsscaling", "prefix" : "vDNS_"}], |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 32 | "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 Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 36 | } |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 37 | |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 38 | ''' |
| 39 | Used by the Heatbridge Validate Query to A&AI to locate the vserver name |
| 40 | ''' |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 41 | GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0', |
| 42 | "vLB" : 'vlb_name_0', |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 43 | "vVG" : '', |
Brian Freeman | abf7ac2 | 2018-05-20 19:49:34 -0500 | [diff] [blame^] | 44 | "vCPE" : 'vgw_name_0', |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 45 | "vFWSNK" : 'vfw_name_0', |
| 46 | "vPKG" : 'vpg_name_0', |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 47 | } |