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