2 Documentation Test suite with connection of multiple switches
3 Library OperatingSystem
7 Variables ../../../../csit/variables/Variables.py
8 Library RequestsLibrary
9 Library ../../../../csit/libraries/Common.py
12 Are 256 Switches Connected
13 [Setup] Start Mininet 256
14 [Teardown] Stop Mininet
15 [Documentation] Checks wheather switches are connected to controller
16 ${resp}= RequestsLibrary.Get session /restconf/operational/network-topology:network-topology/topology/flow:1 headers=${ACCEPT_XML}
18 ${count}= Get Element Count ${resp.content} xpath=node
19 Should Be Equal As Numbers ${count} 256
22 Start Mininet [Arguments] ${swnr}
23 [Documentation] Starts mininet with requested number of switches (${swnr})
24 Log Starting mininet with ${swnr} switches
25 Open Connection ${MININET} prompt=> timeout=600
26 Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
27 Write sudo ovs-vsctl set-manager ptcp:6644
30 Write sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13
33 Create Session session http://${CONTROLLER}:${PORT} auth=${AUTH} headers=${HEADERS_XML}
35 [Documentation] Stops mininet