X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FSxpClusterLib.robot;h=36a069f8e8a50fe97d98536898fb4e4407f6222b;hb=0fb5ff3cd81cc5810c49ea2aeafb05a1e8cc1c8c;hp=6a3562a4e0cc97ab9026872ce77ebbefa6827130;hpb=8d5a4ed155fc926012dc2431ad5e42af00fceef0;p=integration%2Ftest.git diff --git a/csit/libraries/SxpClusterLib.robot b/csit/libraries/SxpClusterLib.robot index 6a3562a4e0..36a069f8e8 100644 --- a/csit/libraries/SxpClusterLib.robot +++ b/csit/libraries/SxpClusterLib.robot @@ -77,6 +77,16 @@ Check Cluster Node started \ ${started} = BuiltIn.Set Variable If '${rc}' == '0' ${True} ${started} BuiltIn.Should Be True ${started} +Check Cluster Node stopped + [Arguments] ${node} ${port}=64999 ${ip}=${node} + [Documentation] Verify that SxpNode has data removed from Operational datastore and Node is stopped + ${stopped} = BuiltIn.Set Variable ${False} + : FOR ${i} IN RANGE ${NUM_ODL_SYSTEM} + \ ${rc} = Utils.Run Command On Remote System ${ODL_SYSTEM_${i+1}_IP} netstat -tln | grep -q ${ip}:${port} && echo 0 || echo 1 ${ODL_SYSTEM_USER} ${ODL_SYSTEM_PASSWORD} + \ ... prompt=${ODL_SYSTEM_PROMPT} + \ ${stopped} = BuiltIn.Set Variable If '${rc}' == '1' ${True} ${stopped} + BuiltIn.Should Be True ${stopped} + Check Device is Connected [Arguments] ${node} ${version}=version4 ${port}=64999 ${session}=session [Documentation] Checks if SXP device is connected to the cluster. It means it has connection in state "on" with one of the cluster members.