2 Documentation Test suite with connection of multiple switches
3 Library OperatingSystem
7 Variables ../../../../test/csit/variables/Variables.py
8 Library ../../../../test/csit/libraries/RequestsLibrary.py
9 Library ../../../../test/csit/libraries/Common.py
11 Suite Setup Start Suite
12 Suite Teardown Stop Suite
16 Are Switches Connected
17 [Documentation] Checks wheather switches are connected to controller
18 [Setup] Start Http Session
19 [Teardown] Stop Http Session
20 ${resp}= Get tcsession /restconf/operational/network-topology:network-topology/topology/flow:1 headers=${ACCEPT_XML}
22 ${count}= Get Element Count ${resp.content} xpath=node
23 Should Be Equal As Numbers ${count} ${switches}
24 Configure And Deconfigure Flows
25 ${result}= Run Process ${PERFSCRIPT} --host ${CONTROLLER} --flows ${flows} --threads ${threads} --auth shell=yes
27 Create File ${CURDIR}/out.log.txt content=${result.stdout}
29 Should Be Equal As Integers ${result.rc} 0
35 ${start} sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${switches},1 --switch ovsk,protocols=OpenFlow13
36 ${PERFSCRIPT} ${CURDIR}/flow_add_delete_test.py
40 [Documentation] Basic setup/cleanup work that can be done safely before any system
42 Log Start the test on the base edition
43 ${mininet_conn_id}= Open Connection ${MININET} prompt=> timeout=600s
44 Set Suite Variable ${mininet_conn_id}
45 Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
46 Write sudo ovs-vsctl set-manager ptcp:6644
57 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
59 Log Stop the test on the base edition
60 Switch Connection ${mininet_conn_id}
67 [Documentation] Starts http session
68 Log http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
69 Create Session tcsession http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
71 [Documentation] Stops http session