2 Documentation Test suite to test cluster connection switchover
3 Suite Setup SxpClusterLib.Setup SXP Cluster Session With Device
4 Suite Teardown SxpClusterLib.Clean SXP Cluster Session
5 Test Setup SxpClusterLib.Setup SXP Cluster
6 Test Teardown SxpClusterLib.Clean SXP Cluster
7 Resource ../../../libraries/ClusterManagement.robot
8 Resource ../../../libraries/SxpClusterLib.robot
11 Isolation of SXP service follower Test
12 [Documentation] Test SXP connection switchover only if Controller with SCS is isolated
13 SxpClusterLib.Check Shards Status
14 ${controller_index} = SxpClusterLib.Get Owner Controller
15 Isolate SXP Controller ${controller_index}
17 Isolation of SXP noservice follower Test
18 [Documentation] Test SXP connection switchover only if Controller without SCS are isolated
19 SxpClusterLib.Check Shards Status
20 ${controller_index} = SxpClusterLib.Get Not Owner Controller
21 Isolate SXP Controller ${controller_index}
24 Isolate SXP Controller
25 [Arguments] ${controller_index}
26 [Documentation] Isolate one of cluster nodes and perform check that Device is still connected afterwards reverts isolation
27 ClusterManagement.Isolate_Member_From_List_Or_All ${controller_index}
28 BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Sync_Status_Should_Be_False ${controller_index}
29 BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}
30 ClusterManagement.Flush_Iptables_From_List_Or_All
31 BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Check_Cluster_Is_In_Sync
32 BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}