From c24fa23eb1f6f1d149e5ee49f544511c886f0502 Mon Sep 17 00:00:00 2001 From: Itzik Brown Date: Tue, 6 Feb 2018 11:35:53 +0200 Subject: [PATCH] Fix for Get Router ID 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 --- csit/libraries/OpenStackOperations.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csit/libraries/OpenStackOperations.robot b/csit/libraries/OpenStackOperations.robot index e8f667d620..6d4c9598f1 100644 --- a/csit/libraries/OpenStackOperations.robot +++ b/csit/libraries/OpenStackOperations.robot @@ -237,7 +237,7 @@ Get Port Id 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 -- 2.36.6