summaryrefslogtreecommitdiffstats
path: root/robot/assets/service_mappings.py
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-12-01 12:39:10 -0500
committerJerry Flood <jf9860@att.com>2017-12-01 12:54:09 -0500
commit3a169a30cdcd9e890e07fdaaad154d104f565e94 (patch)
treee18e8a6d18d3364d7552b73245080c2b99829639 /robot/assets/service_mappings.py
parent3d07a8d83995a41545064442fa5d8bad1a872db6 (diff)
Add support for vFWCL - multiple VNFs
Issue-ID: TEST-72 Change-Id: Ic6fe176ca5fdeac00cd5018aecf7824ec4eca287 Signed-off-by: Jerry Flood <jf9860@att.com>
Diffstat (limited to 'robot/assets/service_mappings.py')
-rw-r--r--robot/assets/service_mappings.py26
1 files changed, 21 insertions, 5 deletions
diff --git a/robot/assets/service_mappings.py b/robot/assets/service_mappings.py
index e0913ff8..5a58bb9f 100644
--- a/robot/assets/service_mappings.py
+++ b/robot/assets/service_mappings.py
@@ -4,21 +4,35 @@ This metadata identifies the folders to be zipped and uploaded to SDC for model
GLOBAL_SERVICE_FOLDER_MAPPING = {"vFW" : ['vFW'], \
"vLB" : ['vLB'], \
"vVG" : ['vVG'], \
- "vCPE" : ['vCPE/infra', 'vCPE/vbng', 'vCPE/vbrgemu', 'vCPE/vgmux', 'vCPE/vgw'],
+ "vCPE" : ['vCPE/infra', 'vCPE/vbng', 'vCPE/vbrgemu', 'vCPE/vgmux', 'vCPE/vgw'],
+ "vFWCL" : ['vFWCL/vFWSNK', 'vFWCL/vPKG'],
+ }
+
+'''
+Map the service to the list of VNFs to be orchestrated
+'''
+GLOBAL_SERVICE_VNF_MAPPING = {
+ "vFW" : ['vFW'],
+ "vLB" : ['vLB'],
+ "vVG" : ['vVG'],
+ "vCPE" : ['vCPE'],
+ "vFWCL" : ['vFWSNK', 'vPKG'],
}
'''
This metadata identifes the preloads that need to be done for a VNF as there may be more than one (vLB)
-"template" maps to the parameters in the preload_paramenters.py
+"template" maps to the parameters in the preload_paramenters.py
- GLOBAL_PRELOAD_PARAMETERS[<testcase>][<template>] -
i.e. GLOBAL_PRELOAD_PARAMETERS['Demo'][dnsscaling_preload.template']
'''
GLOBAL_SERVICE_TEMPLATE_MAPPING = {
- "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}],
+ "vFW" : [{"isBase" : "true", "template" : "vfw_preload.template", "name_pattern": "base_vfw"}],
"vLB" : [{"isBase" : "true", "template" : "vlb_preload.template", "name_pattern": "base_vlb"},
{"isBase" : "false", "template" : "dnsscaling_preload.template", "name_pattern": "dnsscaling", "prefix" : "vDNS_"}],
- "vVG" : [{"isBase" : "true", "template" : "vvg_preload.template", "name_pattern": "base_vvg"}],
- "vCPE" : [{"isBase" : "true", "template" : "vcpe_preload.template", "name_pattern": "base_clearwater"}],
+ "vVG" : [{"isBase" : "true", "template" : "vvg_preload.template", "name_pattern": "base_vvg"}],
+ "vCPE" : [{"isBase" : "true", "template" : "vcpe_preload.template", "name_pattern": "base_clearwater"}],
+ "vFWSNK" : [{"isBase" : "true", "template" : "vfwsnk_preload.template", "name_pattern": "base_vfw"}],
+ "vPKG" : [{"isBase" : "true", "template" : "vpkg_preload.template", "name_pattern": "base_vpkg"}],
}
'''
@@ -28,4 +42,6 @@ GLOBAL_VALIDATE_NAME_MAPPING = {"vFW" : 'vfw_name_0',
"vLB" : 'vlb_name_0',
"vVG" : '',
"vCPE" : '',
+ "vFWSNK" : 'vfw_name_0',
+ "vPKG" : 'vpg_name_0',
}