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}