X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Flib%2Fns_lib.resource;fp=robot-systest%2Flib%2Fns_lib.resource;h=ab763e1391f30230f4bba26cdf486de225e3cefb;hp=8e47f1f1450de6cd7d8b591823fa20e74dc7afa1;hb=9e5450fcb5eda9f9792eb502a2efd741d5f7a1aa;hpb=a22d4b93d6a7a68417d4a1ef3aee6a01bade16de diff --git a/robot-systest/lib/ns_lib.resource b/robot-systest/lib/ns_lib.resource index 8e47f1f..ab763e1 100644 --- a/robot-systest/lib/ns_lib.resource +++ b/robot-systest/lib/ns_lib.resource @@ -216,6 +216,14 @@ Get Dual Ip [Documentation] Get dual ip from the ns list [Arguments] ${ns_id} Should Not Be Empty ${ns_id} - ${rc} ${stdout}= Run And Return RC And Output osm ns-show ${ns_id} --literal | grep -A2 ip-address | awk '{print $2}' | paste -sd ',' | sed 's/^,//; s/,/, /g' | sed 's/^/[/; s/$/]/' + ${rc} ${stdout}= Run And Return RC And Output osm ns-show ${ns_id} --literal | grep -A2 ip-address | grep -v "ip-address:" | awk '{print $2}' | tr -d ',-' Log ${rc},${stdout} RETURN ${stdout} + +Get NSD Id From The NS + [Documentation] Get the nsd id from the ns + [Arguments] ${ns_id} + Should Not Be Empty ${ns_id} + ${stdout}= Run osm ns-show ${ns_id} --literal | grep nsd-id | awk '{print $2}' + Log ${stdout} + RETURN ${stdout}