From: Brian Freeman Date: Mon, 4 Feb 2019 15:21:36 +0000 (-0500) Subject: Dyanmic Service Mapping data for vFWDT X-Git-Tag: 1.4.0~70 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=demo.git;a=commitdiff_plain;h=1b7b647d9c8b1ddc491cf3c1398a7f14b16b4fbf Dyanmic Service Mapping data for vFWDT Issue-ID: INT-829 Change-Id: I279268ef00a626be2781338c2a5218527a42372a Signed-off-by: Brian Freeman --- diff --git a/service_mapping/README.md b/service_mapping/README.md new file mode 100644 index 00000000..1752b260 --- /dev/null +++ b/service_mapping/README.md @@ -0,0 +1,11 @@ +Content +--- + +The service_mapping direction contains a directory per VNF that adds service_mapping data for robot mondel onboarding and intantiation. +Each subdirectory has a name that must match the SERVICE Name used by robot. +In each subdirectory is one file service_mapping.json that is merged with the data in robot's testsuite/robot/assets/service_mapping.py +This way the data about basic vFW, vLB etc from previous releases can be merged with new Services/Use Cases without having to edit service_mapping.py in testsuite. +As new VNF Heat and other VIM artifacts are added the matching service_mapping.json can be added in the Demo repository. + +The service mapping to heat template directory, deployment artifacts, VF to VNF mapping etc are the same structures as in the testsuite service_mapping.py. + diff --git a/service_mapping/vFWDT/service_mapping.json b/service_mapping/vFWDT/service_mapping.json new file mode 100644 index 00000000..74abccd0 --- /dev/null +++ b/service_mapping/vFWDT/service_mapping.json @@ -0,0 +1,24 @@ +{ + "GLOBAL_SERVICE_FOLDER_MAPPING": { + "vFWDT" : ["vFWDT/vFWSNK", "vFWDT/vPKG"] + }, + "GLOBAL_SERVICE_VNF_MAPPING": { + "vFWDT" : ["vFWSNK", "vPKG", "vFWSNK"] + }, + "GLOBAL_SERVICE_GEN_NEUTRON_NETWORK_MAPPING": { + "vFWDT": [] + }, + "GLOBAL_SERVICE_DEPLOYMENT_ARTIFACT_MAPPING": { + "vFWDT": [] + }, + "GLOBAL_SERVICE_TEMPLATE_MAPPING": { + "vFWDT": [{"isBase" : "true", "template" : "vfwdt_vfw0_preload.template", "name_pattern": "base_vfw0"}, + {"isBase" : "true", "template" : "vfwdt_vfw1_preload.template", "name_pattern": "base_vfw1"}, + {"isBase" : "true", "template" : "vfwdt_vfwsnk0_preload.template", "name_pattern": "base_vsnk0"}, + {"isBase" : "true", "template" : "vfwdt_vfwsnk1_preload.template", "name_pattern": "base_vsnk1"}, + {"isBase" : "true", "template" : "vfwdt_vpkg_preload.template", "name_pattern": "base_vpkg"}] + }, + "GLOBAL_VALIDATE_NAME_MAPPING": { + "vFWDT": "vfw_name_0" + } +}