Load Customer And Models
[Documentation] Use ONAP to Orchestrate a service.
[Arguments] ${customer_name}
- Load OwningEntity lineOfBusiness LOB-${customer_name}
- Load OwningEntity platform Platform-${customer_name}
- Load OwningEntity project Project-${customer_name}
- Load OwningEntity owningEntity OE-${customer_name}
Load Customer ${customer_name}
Load Models ${customer_name}
-Load OwningEntity
- [Documentation] Use ONAP to Orchestrate a service.
- [Arguments] ${parameter} ${name}
- ${data_path}= Set Variable /maintenance/category_parameter/${parameter}
- ${vid_data}= Set Variable {"options":["${name}"]}
- ${auth}= Create List ${GLOBAL_VID_USERNAME} ${GLOBAL_VID_PASSWORD}
- Log Creating session ${data_path}
- ${session}= Create Session vid ${VID_ENDPOINT}${VID_ENV} auth=${auth}
- ${uuid}= Generate UUID4
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json USER_ID=${GLOBAL_VID_USERNAME} X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
- ${resp}= Post Request vid ${data_path} data=${vid_data} headers=${headers}
-
Load Customer
[Documentation] Use ONAP to Orchestrate a service.
[Arguments] ${customer_name}
${tenant_id} ${tenant_name}= Setup Orchestrate VNF ${GLOBAL_AAI_CLOUD_OWNER} SharedNode OwnerType v1 CloudZone
${region}= Get Openstack Region
Create Customer For VNF Demo ${customer_name} ${customer_name} INFRA ${GLOBAL_AAI_CLOUD_OWNER} ${region} ${tenant_id}
- Create Customer For VNF Demo ${customer_name} ${customer_name} INFRA ${GLOBAL_AAI_CLOUD_OWNER} RegionTlab 50b190410b2a4c229d8a6044a80ab7c1
+ Create Customer For VNF Demo ${customer_name} ${customer_name} INFRA ${GLOBAL_AAI_CLOUD_OWNER} RegionTlab 50b190410b2a4c229d8a6044a80ab7c1
Create Availability Zone If Not Exists ${GLOBAL_AAI_CLOUD_OWNER} ${region} ${GLOBAL_AAI_AVAILABILITY_ZONE_NAME}
Load Models
Log Distibuting vCPEvBNG
Distribute Model vCPEvBNG ${DEMO_PREFIX}VCPEvBNG
Log Distibuting vCPEvBRGEMU
- Distribute Model vCPEvBRGEMU ${DEMO_PREFIX}VCPEvBRGEMU
+ Distribute Model vCPEvBRGEMU ${DEMO_PREFIX}VCPEvBRGEMU
Log Distibuting vCPEvGMUX
Distribute Model vCPEvGMUX ${DEMO_PREFIX}VCPEvGMUX
Log Distibuting vCPEvGW (this is not vCPEResCust service)
${vf_modules}= Get Module Names from VID ${invariantUUID}
Log ${generic_vnf}
Log ${service_instance_id},${vnf_name},${vnf_type},${vf_module_name},${vf_modules},${service}
- Preload Gra ${service_instance_id} ${vnf_name} ${vnf_type} ${vf_module_name} ${vf_modules} ${vnf} demo ${service}
+ Preload Gra ${service_instance_id} ${vnf_name} ${vnf_type} ${vf_module_name} ${vf_modules} ${vnf} demo ${service}
[Teardown] Close All Browsers
${persona_model_id}= Get From DIctionary ${resp.json()['service-instance'][0]} model-invariant-id
[Return] ${persona_model_id}
-APPC Mount Point
- [Arguments] ${vf_module_name}
- Run Openstack Auth Request auth
- ${status} ${stack_info}= Run Keyword and Ignore Error Wait for Stack to Be Deployed auth ${vf_module_name} timeout=120s
- Run Keyword if '${status}' == 'FAIL' FAIL ${vf_module_name} Stack is not found
- ${stack_id}= Get From Dictionary ${stack_info} id
- ${server_list}= Get Openstack Servers auth
- ${vpg_name_0}= Get From Dictionary ${stack_info} vpg_name_0
- ${vnf_id}= Get From Dictionary ${stack_info} vnf_id
- ${vpg_public_ip}= Get Server Ip ${server_list} ${stack_info} vpg_name_0 network_name=${GLOBAL_INJECTED_OPENSTACK_PUBLIC_NETWORK}
- ${appc}= Create Mount Point In APPC ${vnf_id} ${vpg_public_ip}
-
Instantiate VNF
[Arguments] ${service} ${vf_module_label}=NULL
${tenant_id} ${tenant_name}= Setup Orchestrate VNF ${GLOBAL_AAI_CLOUD_OWNER} SharedNode OwnerType v1 CloudZone
\ ${generic_vnf}= Get From Dictionary ${generic_vnfs} ${vf_module}
\ ${model_invariant_id}= Set Variable If '${vf_module_label}' in '${vf_module}' ${generic_vnf['model-invariant-id']} ${model_invariant_id}
Log Update old vFWCL Policy for ModelInvariantID=${model_invariant_id}
- ${status} ${value}= Run Keyword And Ignore Error Update vVFWCL Policy ${model_invariant_id}
- :FOR ${vf_module_name} IN @{vf_module_name_list}
- \ Log APPC Mount Point for VNF Module Name=${vf_module_name}
- \ ${status} ${value}= Run Keyword And Ignore Error APPC Mount Point ${vf_module_name}
+ ${status} ${value}= Run Keyword And Ignore Error Update vFWCL Operational and Monitoring Policies ${model_invariant_id}
Log Update Tca ControlLoopName
Update Tca ControlLoopName ${model_invariant_id}
[Arguments] ${service} ${vf_module_label}=NULL
${status} ${value}= Run Keyword And Ignore Error Distribute Model vLB_CDS demoVLB_CDS True
${resp}= Get Service Catalog demoVLB_CDS
- ${service-uuid}= Set Variable ${resp['uuid']}
- ${service-invariantUUID}= Set Variable ${resp['invariantUUID']}
+ ${service-uuid}= Set Variable ${resp['uuid']}
+ ${service-invariantUUID}= Set Variable ${resp['invariantUUID']}
${requestid}= CDS Service Instantiate demoVLB_CDS ${service-uuid} ${service-invariantUUID}
- ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME } ${GLOBAL_SO_PASSWORD}
+ ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME } ${GLOBAL_SO_PASSWORD}
SO.Run Polling Get Request ${GLOBAL_SO_APIHAND_ENDPOINT} ${GLOBAL_SO_ORCHESTRATION_REQUESTS_PATH}/${requestid} tries=30 interval=60 auth=${auth}
Instantiate Demo VNF
\ ${generic_vnf}= Get From Dictionary ${generic_vnfs} ${vf_module}
\ ${model_invariant_id}= Set Variable If '${vf_module_label}' in '${vf_module}' ${generic_vnf['model-invariant-id']} ${model_invariant_id}
Log ModelInvariantID=${model_invariant_id}
- ${status} ${value}= Run Keyword And Ignore Error Update vVFWCL Policy ${model_invariant_id}
- ${status} ${value}= Run Keyword And Ignore Error APPC Mount Point ${vf_module_name}
-
+ ${status} ${value}= Run Keyword And Ignore Error Update vFWCL Operational and Monitoring Policies ${model_invariant_id}
Save For Delete
[Documentation] Create a variable file to be loaded for save for delete
${vars}= Catenate ${vars}]\n
OperatingSystem.Create File ${FILE_CACHE}/${stack_name}.py ${vars}
OperatingSystem.Create File ${FILE_CACHE}/lastVNF4HEATBRIGE.py ${vars}
-
-