Documentation Test suite for entity ownership service and openflowplugin. Makes changes on controller side (isolating cluster node)
Suite Setup Start Suite
Suite Teardown End Suite
+Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Template Isolating Node Scenario
Library SSHLibrary
Library RequestsLibrary
Library XML
+Resource ${CURDIR}/../../../libraries/SetupUtils.robot
Resource ${CURDIR}/../../../libraries/Utils.robot
+Resource ${CURDIR}/../../../libraries/FlowLib.robot
Resource ${CURDIR}/../../../libraries/OvsManager.robot
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/ClusterOpenFlow.robot
*** Variables ***
${SWITCHES} 1
-# this is for mininet 2.2.1 ${START_CMD} sudo mn --controller=remote,ip=${ODL_SYSTEM_1_IP} --controller=remote,ip=${ODL_SYSTEM_2_IP} --controller=remote,ip=${ODL_SYSTEM_3_IP} --topo linear,${SWITCHES} --switch ovsk,protocols=OpenFlow13
-${START_CMD} sudo mn --topo linear,${SWITCHES} --switch ovsk,protocols=OpenFlow13
+${START_CMD} sudo mn --topo linear,${SWITCHES}
@{CONTROLLER_NODES} ${ODL_SYSTEM_1_IP} ${ODL_SYSTEM_2_IP} ${ODL_SYSTEM_3_IP}
@{cntls_idx_list} ${1} ${2} ${3}
\ Collections.Append To List ${switch_list} s${sid}
BuiltIn.Set Suite Variable ${active_member} 1
OvsManager.Setup Clustered Controller For Switches ${switch_list} ${cntls_list}
- BuiltIn.Wait Until Keyword Succeeds 15s 1s Are Switches Connected Topo
+ BuiltIn.Wait Until Keyword Succeeds 15s 1s ClusterOpenFlow.Verify Switch Connections Running On Member ${SWITCHES} 1
Switches To Be Connected To All Nodes
[Documentation] Initial check for correct connected topology.
*** Keywords ***
Start Suite
- ClusterManagement.ClusterManagement Setup
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown
End Suite
ClusterManagement.Flush Iptables From List Or All
RequestsLibrary.Delete All Sessions
-Are Switches Connected Topo
- [Documentation] Checks wheather switches are connected to controller
- ${resp}= ClusterManagement.Get From Member ${OPERATIONAL_TOPO_API}/topology/flow:1 ${active_member} access=${ACCEPT_XML}
- BuiltIn.Log ${resp}
- ${count}= XML.Get Element Count ${resp} xpath=node
- BuiltIn.Should Be Equal As Numbers ${count} ${SWITCHES}
-
Check All Switches Connected To All Cluster Nodes
[Documentation] Verifies all switches are connected to all cluster nodes
OvsManager.Get Ovsdb Data