- Variable Should Exist ${vnf_autoheal_id} msg=VNF is not available
-
- @{ip_list}= Get Vnf Vdur IPs ${vnf_autoheal_id}
- log @{ip_list}
- Should Be Equal ${ip_list} ${autoheal_ip_list} IP addresses have changed after healing
-
- ${id}= Get VNF VIM ID ${vnf_autoheal_id}
- log ${id}
- Should Not Be Equal ${id} ${vdu_autoheal_id} VDU id has not changed after healing
-
+ [Documentation] Check that the ID of the VM and the IP addresses have not changed after healing.
+ Variable Should Exist ${VNF_AUTOHEAL_ID} msg=VNF is not available
+ @{ip_list}= Get Vnf Vdur IPs ${VNF_AUTOHEAL_ID}
+ Log @{ip_list}
+ Should Be Equal ${ip_list} ${AUTOHEAL_IP_LIST} IP addresses have changed after healing
+ ${id}= Get VNF VIM ID ${VNF_AUTOHEAL_ID}
+ Log ${id}
+ Should Not Be Equal ${id} ${VDU_AUTOHEAL_ID} VDU id has not changed after healing
+
+Update VIM Objects
+ [Documentation] Retrieve all VMs from the NS and stores them in VIM_VDUS.
+ ... This is done again to guarantee that all objects are cleaned in the VIM in case the heal operation
+ ... added new objects.
+ Variable Should Exist ${NS_ID} msg=NS is not available
+ @{vnf_id_list}= Get Ns Vnf List ${NS_ID}
+ FOR ${vnf_id} IN @{vnf_id_list}
+ ${id}= Get VNF VIM ID ${vnf_id}
+ @{vdu_ids}= Split String ${id}
+ FOR ${id} IN @{vdu_ids}
+ IF not "${id}" in "@{VIM_VDUS}"
+ Append To List ${VIM_VDUS} ${id}
+ END
+ END
+ END
+ Log Many @{VIM_VDUS}