From f44e64388ee1d21b18904d6a2d6815e6f3017d9e Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Thu, 31 May 2018 11:09:14 -0400 Subject: Set orchestration-status to Active - Update heatbridge.robot to set up orchestration-status to Active after a VNF is created Change-Id: I116e94047296bd57ab543bbf4c1ecf549ade32cd Issue-ID: TEST-98 Signed-off-by: Marco Platania --- robot/resources/heatbridge.robot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'robot/resources') diff --git a/robot/resources/heatbridge.robot b/robot/resources/heatbridge.robot index b881da8f..816d22d4 100644 --- a/robot/resources/heatbridge.robot +++ b/robot/resources/heatbridge.robot @@ -38,7 +38,7 @@ Execute Heatbridge ${stack_id}= Get From Dictionary ${stack_info} id ${tenant_id}= Get From Dictionary ${stack_info} OS::project_id ${vnf_id}= Get From Dictionary ${stack_info} vnf_id - Run Set VNF ProvStatus ${vnf_id} PROV + Run Set VNF ProvStatus ${vnf_id} PROV Active ${url} ${path}= Get Keystone Url And Path ${openstack_identity_url}= Catenate ${url}${path} ${region}= Get Openstack Region @@ -74,11 +74,12 @@ Run Vserver Query Run Set VNF ProvStatus [Documentation] Run A&A GET and PUT to set prov-status - [Arguments] ${vnf_id} ${prov_status}=PROV + [Arguments] ${vnf_id} ${prov_status}=PROV ${orch_status}=Active ${payload}= Run Get Generic VNF by VnfId ${vnf_id} #${payload_json}= evaluate json.loads('''${payload}''') json set to dictionary ${payload} prov-status ${prov_status} + set to dictionary ${payload} orchestration-status ${orch_status} ${payload_string}= evaluate json.dumps(${payload}) json ${put_resp}= Run A&AI Put Request ${VERSIONED_INDEX_PATH}/network/generic-vnfs/generic-vnf/${vnf_id} ${payload_string} -- cgit 1.2.3-korg