From f1621dea58fa5beb96356550918a7637d0133034 Mon Sep 17 00:00:00 2001 From: DR695H Date: Thu, 20 Jun 2019 15:37:57 -0400 Subject: move rest of stirngtemplating off old format Issue-ID: TEST-158 Change-Id: I55c246eba1c0132d70b9c7298da095c72cdecbc3 Signed-off-by: DR695H --- robot/assets/templates/so/cds_request.jinja | 48 ++++++++++++++++++++++++++++ robot/assets/templates/so/cds_vfmodule.jinja | 16 ++++++++++ robot/assets/templates/so/cds_vnf.jinja | 23 +++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 robot/assets/templates/so/cds_request.jinja create mode 100644 robot/assets/templates/so/cds_vfmodule.jinja create mode 100644 robot/assets/templates/so/cds_vnf.jinja (limited to 'robot/assets/templates/so') diff --git a/robot/assets/templates/so/cds_request.jinja b/robot/assets/templates/so/cds_request.jinja new file mode 100644 index 00000000..bd82bc74 --- /dev/null +++ b/robot/assets/templates/so/cds_request.jinja @@ -0,0 +1,48 @@ +{ + "requestDetails" : { + "subscriberInfo" : { + "globalSubscriberId" : "{{subscriber_id}}" + }, + "requestInfo" : { + "suppressRollback" : true, + "productFamilyId" : "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "requestorId" : "ym9479", + "instanceName" : "{{service_instance_name}}", + "source" : "VID" + }, + "requestParameters" : { + "subscriptionServiceType" : "{{subscription_service_type}}", + "userParams" : [ + { + "service" : { + "instanceParams" : [], + "instanceName" : "{{service_instance_name}}", + "resources" : { + "vnfs" : {{vnfs} + }, + "modelInfo" : { + "modelType" : "service", + "modelName" : "{{service_model_name}}", + "modelVersionId" : "{{service_model_UUID}}" + } + } + } + ], + "aLaCarte" : false + }, + "project" : { + "projectName" : "some project name" + }, + "owningEntity" : { + "owningEntityName" : "PACKET CORE", + "owningEntityId" : "038d99af-0427-42c2-9d15-971b99b9b489" + }, + "modelInfo" : { + "modelVersion" : "10.0", + "modelVersionId" : "{{service_model_UUID}}", + "modelInvariantId" : "{{service_model_invariantUUID}}", + "modelName" : "{{service_model_name}}", + "modelType" : "service" + } + } +} diff --git a/robot/assets/templates/so/cds_vfmodule.jinja b/robot/assets/templates/so/cds_vfmodule.jinja new file mode 100644 index 00000000..b4b7d7e0 --- /dev/null +++ b/robot/assets/templates/so/cds_vfmodule.jinja @@ -0,0 +1,16 @@ +{ + "modelInfo": { + "modelType": "vfModule", + "modelName": "{{vf_module_model_name}}", + "modelVersionId": "{{vf_module_model_version_id}}", + "modelCustomizationId": "{{vf_module_model_customization_id}}" + }, + "instanceName": "{{vf_module_name}}", + "instanceParams": [ + { + "vfw_param1": "24", + "vfw_param2": "24", + "vfw_param3": "24" + } + ] +} diff --git a/robot/assets/templates/so/cds_vnf.jinja b/robot/assets/templates/so/cds_vnf.jinja new file mode 100644 index 00000000..d3aa35d1 --- /dev/null +++ b/robot/assets/templates/so/cds_vnf.jinja @@ -0,0 +1,23 @@ +{ + "modelInfo": { + "modelType": "vnf", + "modelName": "{{vnf_model_name}}", + "modelVersionId": "{{vnf_model_version_id}}", + "modelCustomizationName": "{{vnf_model_customization_name}}", + "modelCustomizationId": "{{vnf_model_customization_id}}" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "{{cloud_region}}", + "tenantId": "{{tenant_id}}" + }, + "platform": { + "platformName": "test" + }, + "lineOfBusiness": { + "lineOfBusinessName": "someValue" + }, + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "instanceName": "{{vnf_name}}", + "instanceParams": [], + "vfModules": [{{vf_modules}}] +} -- cgit 1.2.3-korg