Instead of listing the routers which can be a problem when
routers have similar names - using openstack router show instead.
Change-Id: I759da4efa304820e26ace87bcde7be12da245780
Signed-off-by: Itzik Brown <itzikb@redhat.com>
Get Router Id
[Arguments] ${router1}
[Documentation] Retrieve the router id for the given router name
- ${rc} ${output}= Run And Return Rc And Output openstack router list -f table | grep "${router1}" | awk '{print $2}'
+ ${rc} ${output}= Run And Return Rc And Output openstack router show "${router1}" |awk '/ id / {print $4}'
Should Be True '${rc}' == '0'
${splitted_output}= Split String ${output} ${EMPTY}
${router_id}= Get from List ${splitted_output} 0