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'], |
Yang Xu | 2ec8038 | 2018-11-01 12:30:37 -0400 | [diff] [blame] | 9 | "vFWNG" : ['vFW_NextGen/templates'], |
Brian Freeman | eef7c6f | 2018-11-16 18:42:21 -0500 | [diff] [blame] | 10 | "vCPEInfra" : ['vCPE/infra'], |
| 11 | "vCPEvBNG" : ['vCPE/vbng'], |
| 12 | "vCPEvBRGEMU" : ['vCPE/vbrgemu'], |
| 13 | "vCPEvGMUX" : ['vCPE/vgmux'], |
| 14 | "vCPEvGW" : ['vCPE/vgw'], |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | ''' |
| 18 | Map the service to the list of VNFs to be orchestrated |
| 19 | ''' |
| 20 | GLOBAL_SERVICE_VNF_MAPPING = { |
| 21 | "vFW" : ['vFW'], |
| 22 | "vLB" : ['vLB'], |
| 23 | "vVG" : ['vVG'], |
| 24 | "vCPE" : ['vCPE'], |
| 25 | "vFWCL" : ['vFWSNK', 'vPKG'], |
Yang Xu | 2ec8038 | 2018-11-01 12:30:37 -0400 | [diff] [blame] | 26 | "vFWNG" : ['vFWNG'], |
Brian Freeman | eef7c6f | 2018-11-16 18:42:21 -0500 | [diff] [blame] | 27 | "vCPEInfra" : ['vCPEInfra'], |
| 28 | "vCPEvBNG" : ['vCPEvBNG'], |
| 29 | "vCPEvBRGEMU" : ['vCPEvBRGEMU'], |
| 30 | "vCPEvGMUX" : ['vCPEvGMUX'], |
| 31 | "vCPEvGW" : ['vCPEvGW'], |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 32 | } |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 33 | |
| 34 | ''' |
Brian Freeman | eef7c6f | 2018-11-16 18:42:21 -0500 | [diff] [blame] | 35 | |
| 36 | Map the service to the list of Generic Neutron Networks to be orchestrated |
| 37 | |
| 38 | ''' |
| 39 | GLOBAL_SERVICE_GEN_NEUTRON_NETWORK_MAPPING = { |
| 40 | "vCPEInfra" : ['CPE_SIGNAL','CPE_PUBLIC'], |
| 41 | "vCPEvBNG" : ['BRG_BNG', 'BNG_MUX'], |
| 42 | "vCPEvGMUX" : ['MUX_GW'], |
| 43 | "vCPEvBRGEMU" :[], |
| 44 | "vCPEvGW" :[], |
| 45 | "vFW" :[], |
| 46 | "vLB" :[], |
| 47 | "vVG" :[], |
| 48 | "vFWCL" :[], |
| 49 | "vFWNG" :[], |
| 50 | } |
| 51 | ''' |
| 52 | |
| 53 | |
| 54 | |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 55 | 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] | 56 | "template" maps to the parameters in the preload_paramenters.py |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 57 | - GLOBAL_PRELOAD_PARAMETERS[<testcase>][<template>] - |
| 58 | i.e. GLOBAL_PRELOAD_PARAMETERS['Demo'][dnsscaling_preload.template'] |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 59 | ''' |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 60 | GLOBAL_SERVICE_TEMPLATE_MAPPING = { |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 61 | "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}], |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 62 | "vLB" : [{"isBase" : "true", "template" : "vlb_preload.template", "name_pattern": "base_vlb"}, |
| 63 | {"isBase" : "false", "template" : "dnsscaling_preload.template", "name_pattern": "dnsscaling", "prefix" : "vDNS_"}], |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 64 | "vVG" : [{"isBase" : "true", "template" : "vvg_preload.template", "name_pattern": "base_vvg"}], |
| 65 | "vCPE" : [{"isBase" : "true", "template" : "vcpe_preload.template", "name_pattern": "base_clearwater"}], |
| 66 | "vFWSNK" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"}], |
| 67 | "vPKG" : [{"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}], |
Bin Yang | 326219a | 2018-05-31 05:35:33 +0000 | [diff] [blame] | 68 | "vFWCL" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"}, |
| 69 | {"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}], |
Brian Freeman | eef7c6f | 2018-11-16 18:42:21 -0500 | [diff] [blame] | 70 | "vCPEInfra" : [{"isBase" : "true", "template" : "vcpe_infra_preload.template", "name_pattern": "base_infra"}], |
| 71 | "vCPEvBNG" : [{"isBase" : "true", "template" : "vcpe_vbng_preload.template", "name_pattern": "base_vbng"}], |
| 72 | "vCPEvBRGEMU" : [{"isBase" : "true", "template" : "vcpe_vbrgemu_preload.template", "name_pattern": "base_vbrgemu"}], |
| 73 | "vCPEvGMUX" : [{"isBase" : "true", "template" : "vcpe_vgmux_preload.template", "name_pattern": "base_vgmux"}], |
| 74 | "vCPEvGW" : [{"isBase" : "true", "template" : "vcpe_vgw_preload.template", "name_pattern": "base_vgw"}], |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 75 | } |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 76 | |
Jerry Flood | d40619e | 2017-08-24 09:38:48 -0400 | [diff] [blame] | 77 | ''' |
| 78 | Used by the Heatbridge Validate Query to A&AI to locate the vserver name |
| 79 | ''' |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 80 | GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0', |
| 81 | "vLB" : 'vlb_name_0', |
Jerry Flood | 3fc36a3 | 2017-10-11 11:09:19 -0400 | [diff] [blame] | 82 | "vVG" : '', |
Brian Freeman | abf7ac2 | 2018-05-20 19:49:34 -0500 | [diff] [blame] | 83 | "vCPE" : 'vgw_name_0', |
Brian Freeman | 108048b | 2018-05-22 13:13:05 -0500 | [diff] [blame] | 84 | "vCPEvGW" : 'vgw_name_0', |
| 85 | "vCPEvDNS" : 'vdns_name_0', |
| 86 | "vCPEvAAA" : 'vaaa_name_0', |
| 87 | "vCPEvWEB" : 'vweb_name_0', |
| 88 | "vCPEvDHCP" : 'vdhcp_name_0', |
Yang Xu | 875ab32 | 2018-11-21 22:38:18 -0500 | [diff] [blame^] | 89 | "vCPEvGMUX" : 'vgmux_name_0', |
Jerry Flood | 3a169a3 | 2017-12-01 12:39:10 -0500 | [diff] [blame] | 90 | "vFWSNK" : 'vfw_name_0', |
| 91 | "vPKG" : 'vpg_name_0', |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 92 | } |
Brian Freeman | eef7c6f | 2018-11-16 18:42:21 -0500 | [diff] [blame] | 93 | |