2 Documentation Test suite with connection of multiple switches
3 Suite Setup Start Suite
4 Suite Teardown Stop Suite
5 Library OperatingSystem
9 Variables ../../../variables/Variables.py
10 Library RequestsLibrary
11 Library ../../../libraries/Common.py
18 ${start} sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${switches},1 --switch ovsk,protocols=OpenFlow13
19 ${PERFSCRIPT} ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/flow_add_delete_test.py
20 ${PARSESCRIPT} ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py
23 Are Switches Connected
24 [Documentation] Checks wheather switches are connected to controller
25 [Setup] Start Http Session
26 ${resp}= Get tcsession /restconf/operational/network-topology:network-topology/topology/flow:1 headers=${ACCEPT_XML}
28 ${count}= Get Element Count ${resp.content} xpath=node
29 Should Be Equal As Numbers ${count} ${switches}
30 [Teardown] Stop Http Session
32 Configure And Deconfigure Flows
33 ${result}= Run Process ${PERFSCRIPT} --host ${ODL_SYSTEM_IP} --flows ${flows}
34 ... --threads ${threads} --auth shell=yes
36 Create File out.log.txt content=${result.stdout}
38 Should Be Equal As Integers ${result.rc} 0
39 ${result}= Run Process python ${PARSESCRIPT}
43 [Documentation] Basic setup/cleanup work that can be done safely before any system
45 Log Start the test on the base edition
46 ${mininet_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} prompt=> timeout=600s
47 Set Suite Variable ${mininet_conn_id}
48 Login With Public Key ${TOOLS_SYSTEM_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
49 Write sudo ovs-vsctl set-manager ptcp:6644
60 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
62 Log Stop the test on the base edition
63 Switch Connection ${mininet_conn_id}
70 [Documentation] Starts http session
71 Log http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
72 Create Session tcsession http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
75 [Documentation] Stops http session