X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Flib%2Fns_lib.robot;fp=robot-systest%2Flib%2Fns_lib.robot;h=c8da2713e73425735c9559d003011a09ec3e3845;hp=a37e509d9eb24125e24ff8f43bbab3d059069790;hb=bbae1a7e282f0dbaf808bf0eba27cf4aa5023523;hpb=58cc2072b52a59957be00f831eaaed7fcb96217c diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot index a37e509..c8da271 100644 --- a/robot-systest/lib/ns_lib.robot +++ b/robot-systest/lib/ns_lib.robot @@ -415,4 +415,13 @@ Cancel operation By Id ${rc} ${stdout}= Run and Return RC and Output osm ns-op-cancel ${op_id} --cancel_mode ${cancel_mode} --wait Log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} - [Return] ${stdout} \ No newline at end of file + [Return] ${stdout} + +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/$/]/' + Log ${stdout} + [Return] ${stdout} +