X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Flib%2Fnsd_lib.resource;h=0821b1f70eb5d65b38d76fc194334c02d30fe808;hp=175322bf81c42570e390337b3189d339d1fd230f;hb=HEAD;hpb=a22d4b93d6a7a68417d4a1ef3aee6a01bade16de diff --git a/robot-systest/lib/nsd_lib.resource b/robot-systest/lib/nsd_lib.resource index 175322b..0821b1f 100644 --- a/robot-systest/lib/nsd_lib.resource +++ b/robot-systest/lib/nsd_lib.resource @@ -61,3 +61,10 @@ Check For NSD ${rc} ${stdout}= Run And Return Rc And Output osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Log ${rc},${stdout} Should Not Be Equal As Strings ${stdout} ${nsd_id} + +Get NSD Ip + [Documentation] To get the Ip from the Nsd + [Arguments] ${nsd_id} + ${stdout}= Run osm nsd-show ${nsd_id} --literal | grep -A2 ip-address | grep -v "ip-address:" | awk '{print $2}' | tr -d ',-' + Log ${stdout} + RETURN ${stdout}