2 Documentation Test suite with connection of multiple switches
3 Library OperatingSystem
7 Variables ../../../variables/Variables.py
8 Library ../../../libraries/RequestsLibrary.py
9 Library ../../../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 out.log.txt content=${result.stdout}
29 Should Be Equal As Integers ${result.rc} 0
30 ${result}= Run Process python ${PARSESCRIPT}
36 ${start} sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${switches},1 --switch ovsk,protocols=OpenFlow13
37 ${PERFSCRIPT} ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/flow_add_delete_test.py
38 ${PARSESCRIPT} ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py
42 [Documentation] Basic setup/cleanup work that can be done safely before any system
44 Log Start the test on the base edition
45 ${mininet_conn_id}= Open Connection ${MININET} prompt=> timeout=600s
46 Set Suite Variable ${mininet_conn_id}
47 Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
48 Write sudo ovs-vsctl set-manager ptcp:6644
59 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
61 Log Stop the test on the base edition
62 Switch Connection ${mininet_conn_id}
69 [Documentation] Starts http session
70 Log http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
71 Create Session tcsession http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
73 [Documentation] Stops http session