${ns_delete_pol_time} 15sec
${ns_action_max_wait_time} 1min
${ns_action_pol_time} 15sec
-${vnf_scale_max_wait_time} 2min
${vnf_scale_pol_time} 15sec
${vim_timeout_multiplier} %{OSM_VIM_MULTIPLIER_TIMEOUT=1.0}
Check For Ns Instance To Configured
[arguments] ${ns_name}
+ ${rc} ${stdout}= Run and Return RC and Output openstack server list
+ log ${stdout}
${rc} ${stdout}= run and return rc and output osm ns-list --filter name="${ns_name}"
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
Check For NS Instance For Failure
[Arguments] ${ns_name}
+ ${rc} ${stdout}= Run and Return RC and Output openstack server list
+ log ${stdout}
${rc} ${stdout}= Run and Return RC and Output osm ns-list --filter name="${ns_name}"
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
Check For NS Instance To Be Deleted
[Arguments] ${ns}
+ ${rc} ${stdout}= Run and Return RC and Output openstack server list
+ log ${stdout}
${rc} ${stdout}= Run and Return RC and Output osm ns-list | awk '{print $2}' | grep ${ns}
Should Not Be Equal As Strings ${stdout} ${ns}
... The parameter 'scale_type' must be SCALE_IN or SCALE_OUT.
... Return the ID of the operation associated to the executed scale action.
- [Arguments] ${ns_name} ${vnf_member_index} ${scaling_group} ${scale_type}
+ [Arguments] ${ns_name} ${vnf_member_index} ${scaling_group} ${scale_type} ${vnf_scale_max_wait_time}=2min
+ ${vnf_scale_max_wait_time}= Convert Time ${vnf_scale_max_wait_time} result_format=number
+ ${vnf_scale_max_wait_time}= Evaluate ${vnf_scale_max_wait_time} * ${vim_timeout_multiplier}
Should Contain Any ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False
${osm_vnf_scale_command}= Set Variable osm vnf-scale --scaling-group ${scaling_group}
${osm_vnf_scale_command}= Run Keyword If '${scale_type}'=='SCALE_IN' Catenate ${osm_vnf_scale_command} --scale-in