Add retries for HWVTEP emulator setup 37/68337/2
authorVictor Pickard <vpickard@redhat.com>
Thu, 15 Feb 2018 22:42:22 +0000 (17:42 -0500)
committerVictor Pickard <vpickard@redhat.com>
Sat, 17 Feb 2018 13:14:39 +0000 (13:14 +0000)
In queens, I can see that the HVWTEP emulator
shows connected for 0 secs, so let's add some
retries/timeout to give it time to show up in the
config.

Change-Id: Iefa48cf361b259639dee062d70ad216f19a3264a
Signed-off-by: Victor Pickard <vpickard@redhat.com>
csit/libraries/L2GatewayOperations.robot

index 01ab61b2298180e2dcf4c2af4a1c0880f4a72d1f..fa17b848348314f1742ae991afe213f1433ec61f 100644 (file)
@@ -59,7 +59,7 @@ Add Vtep Manager And Verify
     ${output}=    Exec Command    ${conn_id}    ${NETSTAT}
     Should Contain    ${output}    ${OVSDBPORT}
     @{list_to_check}=    Create List    ${odl_ip}
-    Utils.Check For Elements At URI    ${HWVTEP_NETWORK_TOPOLOGY}    ${list_to_check}    session
+    Wait Until Keyword Succeeds    30s    2s    Utils.Check For Elements At URI    ${HWVTEP_NETWORK_TOPOLOGY}    ${list_to_check}    session
 
 Create Verify L2Gateway
     [Arguments]    ${bridge_name}    ${intf_name}    ${gw_name}