X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Flib%2Fns_lib.robot;h=d0b9d5334ca802785e296fff654e0e2ac53676d7;hp=125ad14bb78775d2ac69225d0e49683777ef57e7;hb=refs%2Fchanges%2F82%2F10082%2F1;hpb=6cc2bd1730f322c34ccd0424d2569fbcde172ad9 diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot index 125ad14..d0b9d53 100644 --- a/robot-systest/lib/ns_lib.robot +++ b/robot-systest/lib/ns_lib.robot @@ -86,7 +86,7 @@ Get Vnf Ip List [arguments] ${vnf_id} should not be empty ${vnf_id} - @{vnf_ip_list_string}= run and return rc and output osm vnf-show ${vnf_id} --filter vdur --literal | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 + @{vnf_ip_list_string}= run and return rc and output osm vnf-list --filter id=${vnf_id} | grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' | sort -t: -u -k1,1 2>&1 # returns a string of ip addresses and needs to be converted into a list should not be empty ${vnf_ip_list_string}[1] @{vnf_ip_list} = split string ${vnf_ip_list_string}[1]