diff options
author | Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> | 2019-09-13 21:04:30 +0000 |
---|---|---|
committer | Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> | 2019-09-13 21:04:30 +0000 |
commit | 0752bf9766b678407df1ad0c242bb6cda0879326 (patch) | |
tree | b853c8bd8bf7f2791a19af775e0003a267e9a232 /robot/assets | |
parent | 94cc783a408415d1270733ba1933c171ffa7e1de (diff) |
Add instantiate vLB_CDS to robot (jinja template)
Issue-ID: TEST-194
Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Change-Id: I32590fdd944cb1f624b5d551acae3dbaed2fe350
Diffstat (limited to 'robot/assets')
-rw-r--r-- | robot/assets/templates/so/cds_service_template.jinja | 163 |
1 files changed, 163 insertions, 0 deletions
diff --git a/robot/assets/templates/so/cds_service_template.jinja b/robot/assets/templates/so/cds_service_template.jinja new file mode 100644 index 00000000..de2a36f1 --- /dev/null +++ b/robot/assets/templates/so/cds_service_template.jinja @@ -0,0 +1,163 @@ +{ + "requestDetails":{ + "subscriberInfo":{ + "globalSubscriberId":"{{customer}}" + }, + "requestInfo":{ + "suppressRollback":false, + "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "requestorId":"adt", + "instanceName":"{{cds_instance_name}}", + "source":"VID" + }, + "cloudConfiguration":{ + "lcpCloudRegionId":"{{GLOBAL_INJECTED_REGION}}", + "tenantId":"{{GLOBAL_INJECTED_OPENSTACK_TENANT_ID}}", + "cloudOwner":"{{cloudOwner}}" + }, + "requestParameters":{ + "subscriptionServiceType":"{{subscriptionServiceType}}", + "userParams":[ + { + "Homing_Solution":"none" + }, + { + "service":{ + "instanceParams":[ + + ], + "instanceName":"{{cds_instance_name}}", + "resources":{ + "vnfs":[ + { + "modelInfo":{ + "modelName":"{{resp['serviceVnfs'][0]['modelInfo']['modelName']}}", + "modelVersionId":"{{resp['serviceVnfs'][0]['modelInfo']['modelUuid']}}", + "modelInvariantUuid":"{{resp['serviceVnfs'][0]['modelInfo']['modelInvariantUuid']}}", + "modelVersion":"1.0", + "modelCustomizationId":"{{resp['serviceVnfs'][0]['modelInfo']['modelCustomizationUuid']}}", + "modelInstanceName":"{{resp['serviceVnfs'][0]['modelInfo']['modelInstanceName']}}" + }, + "cloudConfiguration":{ + "lcpCloudRegionId":"{{GLOBAL_INJECTED_REGION}}", + "tenantId":"{{GLOBAL_INJECTED_OPENSTACK_TENANT_ID}}" + }, + "platform":{ + "platformName":"test" + }, + "lineOfBusiness":{ + "lineOfBusinessName":"LOB-Demonstration" + }, + "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "instanceName":"{{resp['serviceVnfs'][0]['modelInfo']['modelInstanceName']}}", + "instanceParams":[ + { + "onap_private_net_id":"{{GLOBAL_INJECTED_NETWORK}}", + "onap_private_subnet_id":"{{GLOBAL_INJECTED_OPENSTACK_PRIVATE_SUBNET_ID}}", + "pub_key":"{{GLOBAL_INJECTED_PUBLIC_KEY}}", + "image_name":"{{GLOBAL_INJECTED_UBUNTU_1604_IMAGE}}", + "flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}", + "vpg_flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}", + "vlb_flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}", + "vdns_flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}", + "sec_group":"{{GLOBAL_INJECTED_OPENSTACK_SECURITY_GROUP}}", + "install_script_version":"{{GLOBAL_INJECTED_SCRIPT_VERSION}}", + "demo_artifacts_version":"{{GLOBAL_INJECTED_SCRIPT_VERSION}}", + "cloud_env":"{{GLOBAL_INJECTED_CLOUD_ENV}}", + "public_net_id":"{{GLOBAL_INJECTED_PUBLIC_NET_ID}}", + "aic-cloud-region":"{{GLOBAL_INJECTED_REGION}}" + } + ], + "vfModules":[ + { + "modelInfo":{ + "modelName":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelName']}}", + "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelUuid']}}", + "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelInvariantUuid']}}", + "modelVersion":"1", + "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelCustomizationUuid']}}" + }, + "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelName']}}", + "instanceParams":[ + { + + } + ] + }, + { + "modelInfo":{ + "modelName":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelName']}}", + "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelUuid']}}", + "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelInvariantUuid']}}", + "modelVersion":"1", + "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelCustomizationUuid']}}" + }, + "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelName']}}", + "instanceParams":[ + { + + } + ] + }, + { + "modelInfo":{ + "modelName":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelName']}}", + "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelUuid']}}", + "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelInvariantUuid']}}", + "modelVersion":"1", + "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelCustomizationUuid']}}" + }, + "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelName']}}", + "instanceParams":[ + { + + } + ] + }, + { + "modelInfo":{ + "modelName":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelName']}}", + "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelUuid']}}", + "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelInvariantUuid']}}", + "modelVersion":"1", + "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelCustomizationUuid']}}" + }, + "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelName']}}", + "instanceParams":[ + { + + } + ] + } + ] + } + ] + }, + "modelInfo":{ + "modelVersion":"1.0", + "modelVersionId":"{{service_uuid}}", + "modelInvariantId":"{{service_invariantUUID}}", + "modelName":"{{cds_service_model}}", + "modelType":"service" + } + } + } + ], + "aLaCarte":false + }, + "project":{ + "projectName":"Project-Demonstration" + }, + "owningEntity":{ + "owningEntityId":"67f2e84c-734d-4e90-a1e4-d2ffa2e75849", + "owningEntityName":"OE-Demonstration" + }, + "modelInfo":{ + "modelVersion":"1.0", + "modelVersionId":"{{service_uuid}}", + "modelInvariantId":"{{service_invariantUUID}}", + "modelName":"{{cds_service_model}}", + "modelType":"service" + } + } +} |