*** Variables ***
${success_return_code} 0
${slice_launch_pol_time} 30sec
-${slice_delete_max_wait_time} 4min
${slice_delete_pol_time} 15sec
+${vim_timeout_multiplier} %{OSM_VIM_MULTIPLIER_TIMEOUT=1.0}
+
*** Keywords ***
[Arguments] ${nst} ${vim_name} ${slice_name} ${slice_config} ${publickey} ${slice_launch_max_wait_time}=6min ${config_file}=${EMPTY}
+ ${slice_launch_max_wait_time}= Convert Time ${slice_launch_max_wait_time} result_format=number
+ ${slice_launch_max_wait_time}= Evaluate ${slice_launch_max_wait_time} * ${vim_timeout_multiplier}
${config_attr} Set Variable If '${slice_config}'!='${EMPTY}' --config '${slice_config}' \
${sshkeys_attr} Set Variable If '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} \
${config_file_attr} Set Variable If '${config_file}'!='${EMPTY}' --config_file '${config_file}' \
[Documentation] Delete Network Slice Instance (NSI)
... Parameters:
... slice_name: Name of the slice instance
+ ... slice_delete_max_wait_time: Delete operation timeout
... Execution example:
... Delete NST \${slice_name}
- [Arguments] ${slice_name}
+ [Arguments] ${slice_name} ${slice_delete_max_wait_time}=4min
${rc} ${stdout}= Run and Return RC and Output osm nsi-delete ${slice_name}
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
+ ${slice_delete_max_wait_time}= Convert Time ${slice_delete_max_wait_time} result_format=number
+ ${slice_delete_max_wait_time}= Evaluate ${slice_delete_max_wait_time} * ${vim_timeout_multiplier}
WAIT UNTIL KEYWORD SUCCEEDS ${slice_delete_max_wait_time} ${slice_delete_pol_time} Check For Network Slice Instance To Be Deleted ${slice_name}