SXP: Cluster suite fixes
[integration/test.git] / csit / suites / sxp / cluster-routing / 020_Sxp_Node_Switching.robot
index c07d2a925e1d4f4f931597ba86ec275cd7e8ff01..c762361f4c02ab9292878e5c36dd7b9b13213d03 100644 (file)
@@ -4,7 +4,7 @@ Documentation     Test suite to test cluster connection and propagation switchov
 ...               Resources of this VM are not required. At suite start this node is shutted down to reduce routing conflicts.
 Suite Setup       Setup Custom SXP Cluster Session
 Suite Teardown    Clean Custom SXP Cluster Session
-Test Teardown     Clean SXP Cluster
+Test Teardown     Clean Custom SXP Cluster
 Library           ../../../libraries/Sxp.py
 Resource          ../../../libraries/ClusterManagement.robot
 Resource          ../../../libraries/SxpClusterLib.robot
@@ -81,6 +81,11 @@ Setup Nodes And Connections
     BuiltIn.Wait Until Keyword Succeeds    120    1    Check Device is Connected    mode=${peer_mode}
     BuiltIn.Wait Until Keyword Succeeds    120    1    SxpClusterLib.Check Cluster is Connected    ${CLUSTER_NODE_ID}    mode=${cluster_mode}    session=ClusterManagement__session_${controller_id}
 
+Clean Custom SXP Cluster
+    [Documentation]    Disconnect SXP cluster topology
+    SxpLib.Delete Node    ${DEVICE_NODE_ID}    session=${DEVICE_SESSION}
+    SxpLib.Delete Node    ${CLUSTER_NODE_ID}    session=${CONTROLLER_SESSION}
+
 Add Bindings To Node
     [Arguments]    ${node}    ${session}
     [Documentation]    Setup initial bindings to SXP device