[Arguments] ${peer_mode}=listener
[Documentation] Setup and connect SXP cluster topology
SxpLib.Add Node ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 20x 10s SxpLib.Check Node Started ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s SxpLib.Check Node Started ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
: FOR ${i} IN RANGE ${NUM_ODL_SYSTEM}
\ SxpLib.Add Connection version4 ${peer_mode} ${ODL_SYSTEM_${i+1}_IP} 64999 node=${DEVICE_NODE_ID}
\ ... session=${DEVICE_SESSION}
${cluster_mode} = Sxp.Get Opposing Mode ${peer_mode}
SxpLib.Add Node ${INADDR_ANY} session=${CONTROLLER_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 20x 10s Check Cluster Node Started ${INADDR_ANY} ip=${EMPTY}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s Check Cluster Node Started ${INADDR_ANY} ip=${EMPTY}
SxpLib.Add Connection version4 ${cluster_mode} ${DEVICE_NODE_ID} 64999 ${INADDR_ANY} session=${CONTROLLER_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 48x 10s Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 480x 1s Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
Clean SXP Cluster
[Documentation] Disconnect SXP cluster topology
SxpLib.Delete Node ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 12x 10s SxpLib.Check Node Stopped ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 3x 10s SxpLib.Delete Node ${INADDR_ANY} session=${CONTROLLER_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 12x 10s SxpClusterLib.Check Cluster Node Stopped ${INADDR_ANY} ip=${EMPTY}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s SxpLib.Check Node Stopped ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 60x 1s SxpLib.Delete Node ${INADDR_ANY} session=${CONTROLLER_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s SxpClusterLib.Check Cluster Node Stopped ${INADDR_ANY} ip=${EMPTY}
Check Cluster Node Started
[Arguments] ${node} ${port}=64999 ${ip}=${node}
Get Owner Controller
[Arguments] ${running_member}=1
[Documentation] Find cluster controller that is marked as cluster owner by requesting ownership data from ${running_member} node of the cluster
- ${owner} ${candidates} = BuiltIn.Wait Until Keyword Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device org.opendaylight.sxp.controller.boot.SxpControllerInstance
+ ${owner} ${candidates} = BuiltIn.Wait Until Keyword Succeeds 60x 1s ClusterManagement.Get_Owner_And_Successors_For_Device org.opendaylight.sxp.controller.boot.SxpControllerInstance
... Sxp ${running_member}
[Return] ${owner}
[Arguments] ${controller_index}
[Documentation] Isolate one of cluster nodes and perform check that Device is still connected afterwards reverts isolation
${running_members} = ClusterManagement.Isolate_Member_From_List_Or_All ${controller_index}
- BuiltIn.Wait_Until_Keyword_Succeeds 60 1 ClusterManagement.Verify_Members_Are_Ready member_index_list=${running_members} verify_cluster_sync=True verify_restconf=True
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s ClusterManagement.Verify_Members_Are_Ready member_index_list=${running_members} verify_cluster_sync=True verify_restconf=True
... verify_system_status=False service_list=${EMPTY_LIST}
- BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
- BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
ClusterManagement.Flush_Iptables_From_List_Or_All
- BuiltIn.Wait_Until_Keyword_Succeeds 60 1 ClusterManagement.Verify_Members_Are_Ready member_index_list=${EMPTY} verify_cluster_sync=True verify_restconf=True
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s ClusterManagement.Verify_Members_Are_Ready member_index_list=${EMPTY} verify_cluster_sync=True verify_restconf=True
... verify_system_status=False service_list=${EMPTY_LIST}
- BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
: FOR ${i} IN RANGE ${NUM_ODL_SYSTEM}
\ SxpLib.Add Bindings ${i+1}0 ${i+1}0.${i+1}0.${i+1}0.${i+1}0/32 node=${INADDR_ANY} session=ClusterManagement__session_${owner_controller}
@{running_members} = ClusterManagement.Isolate_Member_From_List_Or_All ${controller_index}
- BuiltIn.Wait_Until_Keyword_Succeeds 60 1 ClusterManagement.Verify_Members_Are_Ready member_index_list=${running_members} verify_cluster_sync=True verify_restconf=True
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s ClusterManagement.Verify_Members_Are_Ready member_index_list=${running_members} verify_cluster_sync=True verify_restconf=True
... verify_system_status=False service_list=${EMPTY_LIST}
- BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
${running_member} = Collections.Get From List ${running_members} 0
${owner_controller} = SxpClusterLib.Get Owner Controller ${running_member}
- BuiltIn.Wait Until Keyword Succeeds 30 1 Check Bindings Exist ${owner_controller}
+ BuiltIn.Wait Until Keyword Succeeds 60x 1s Check Bindings Exist ${owner_controller}
: FOR ${i} IN RANGE ${NUM_ODL_SYSTEM}
\ SxpLib.Delete Bindings ${i+1}0 ${i+1}0.${i+1}0.${i+1}0.${i+1}0/32 node=${INADDR_ANY} session=ClusterManagement__session_${owner_controller}
ClusterManagement.Flush_Iptables_From_List_Or_All
- BuiltIn.Wait_Until_Keyword_Succeeds 60 1 ClusterManagement.Verify_Members_Are_Ready member_index_list=${EMPTY} verify_cluster_sync=True verify_restconf=True
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s ClusterManagement.Verify_Members_Are_Ready member_index_list=${EMPTY} verify_cluster_sync=True verify_restconf=True
... verify_system_status=False service_list=${EMPTY_LIST}
- BuiltIn.Wait Until Keyword Succeeds 30 1 Check Bindings Does Not Exist ${owner_controller}
+ BuiltIn.Wait Until Keyword Succeeds 60x 1s Check Bindings Does Not Exist ${owner_controller}
Check Bindings Exist
[Arguments] ${owner_controller}
[Documentation] Test SXP binding propagation from device to cluster after cluster owner is isolated
[Setup] Setup Custom SXP Cluster speaker
${controller_index} = SxpClusterLib.Get Owner Controller
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
Isolate SXP Controller ${controller_index} ${INADDR_ANY}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${INADDR_ANY} ClusterManagement__session_${RUNNING_MEMBER}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${INADDR_ANY} ClusterManagement__session_${RUNNING_MEMBER}
UnIsolate SXP Controller ${controller_index}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
[Teardown] SxpClusterLib.Clean SXP Cluster
Isolation of SXP noservice follower Test Speaker Part
[Documentation] Test SXP binding propagation from device to cluster after cluster (not owner) node is isolated
[Setup] Setup Custom SXP Cluster speaker
${controller_index} = SxpClusterLib.Get Not Owner Controller
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
Isolate SXP Controller ${controller_index} ${INADDR_ANY}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${INADDR_ANY} ClusterManagement__session_${RUNNING_MEMBER}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${INADDR_ANY} ClusterManagement__session_${RUNNING_MEMBER}
UnIsolate SXP Controller ${controller_index}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${INADDR_ANY} ClusterManagement__session_${controller_index}
[Teardown] SxpClusterLib.Clean SXP Cluster
Isolation of SXP service follower Test Listener Part
[Documentation] Test SXP binding propagation from cluster to device after cluster owner is isolated
[Setup] Setup Custom SXP Cluster listener ${INADDR_ANY} ${CONTROLLER_SESSION}
${controller_index} = SxpClusterLib.Get Owner Controller
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
Isolate SXP Controller ${controller_index} ${DEVICE_NODE_ID} ${DEVICE_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
UnIsolate SXP Controller ${controller_index}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
[Teardown] SxpClusterLib.Clean SXP Cluster
Isolation of SXP noservice follower Test Listener Part
[Documentation] Test SXP binding propagation from cluster to device after cluster (not owner) node is isolated
[Setup] Setup Custom SXP Cluster listener ${INADDR_ANY} ${CONTROLLER_SESSION}
${controller_index} = SxpClusterLib.Get Not Owner Controller
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
Isolate SXP Controller ${controller_index} ${DEVICE_NODE_ID} ${DEVICE_SESSION}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
UnIsolate SXP Controller ${controller_index}
- BuiltIn.Wait Until Keyword Succeeds 60 1 Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s Check Bindings ${DEVICE_NODE_ID} ${DEVICE_SESSION}
[Teardown] SxpClusterLib.Clean SXP Cluster
*** Keywords ***
[Arguments] ${controller_index} ${node} ${session}=ClusterManagement__session_${controller_index}
[Documentation] Isolate one of cluster nodes and perform check that device is connected
@{running_members} = ClusterManagement.Isolate_Member_From_List_Or_All ${controller_index}
- BuiltIn.Wait_Until_Keyword_Succeeds 60 1 ClusterManagement.Verify_Members_Are_Ready member_index_list=${running_members} verify_cluster_sync=True verify_restconf=True
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s ClusterManagement.Verify_Members_Are_Ready member_index_list=${running_members} verify_cluster_sync=True verify_restconf=True
... verify_system_status=False service_list=${EMPTY_LIST}
${running_member} = Collections.Get From List ${running_members} 0
BuiltIn.Set Test Variable ${RUNNING_MEMBER} ${running_member}
- BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
- BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 240x 1s ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
UnIsolate SXP Controller
[Arguments] ${controller_index}
[Documentation] Un-Isolate one of cluster nodes and perform check that device is connected
ClusterManagement.Flush_Iptables_From_List_Or_All
- BuiltIn.Wait_Until_Keyword_Succeeds 60 1 ClusterManagement.Verify_Members_Are_Ready member_index_list=${EMPTY} verify_cluster_sync=True verify_restconf=True
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s ClusterManagement.Verify_Members_Are_Ready member_index_list=${EMPTY} verify_cluster_sync=True verify_restconf=True
... verify_system_status=False service_list=${EMPTY_LIST}
- BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
+ BuiltIn.Wait Until Keyword Succeeds 120x 1s SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
Check Bindings
[Arguments] ${node} ${session}