X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=robot-systest%2Flib%2Fns_lib.robot;h=57eb6f558e2862f437751f9e7654b36b2b8bc4b2;hb=f21267893020608172b5cd94a0c889c83697cab5;hp=d0b9d5334ca802785e296fff654e0e2ac53676d7;hpb=c88e004791675692aa7eba25800350b19720d5fd;p=osm%2Ftests.git diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot index d0b9d53..57eb6f5 100644 --- a/robot-systest/lib/ns_lib.robot +++ b/robot-systest/lib/ns_lib.robot @@ -57,6 +57,17 @@ Get Vnf Management Ip Address [Return] ${stdout} +Get Vnf Id + [Arguments] ${ns_id} ${vnf_member_index} + + Should Not Be Empty ${ns_id} + Should Not Be Empty ${vnf_member_index} + ${rc} ${stdout}= Run and Return RC and Output osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + [Return] ${stdout} + + Get Ns Vnf List [Arguments] ${ns_id}