Launching the NS using the Dualstackip
Change-Id: I8bb8e9c492ef8519b3888e8695fe1905d66a5dd8
Signed-off-by: rarik <arika.r@tataelxsi.co.in>
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 @@
${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}
+