[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}