2 Documentation Suite checks if StatMngr is able to collect flows lineary spread over the switches but in one table on the switch
3 Suite Setup Connect Switches
4 Suite Teardown Stop Switches
5 Library OperatingSystem
9 Variables ../../../../csit/variables/Variables.py
10 Library RequestsLibrary
11 Library ../../../../csit/libraries/Common.py
12 Library ../../../../csit/libraries/ScaleClient.py
19 ${topourl} /restconf/operational/network-topology:network-topology/topology/flow:1
20 ${invurl} /restconf/operational/opendaylight-inventory:nodes
21 @{cntls} ${CONTROLLER}
25 ${flows} ${notes}= Generate New Flow Details flows=${flnr} switches=${swnr} swspread=${swspread} tabspread=${tabspread}
27 ${res}= Configure Flows flow_details=${flows} controllers=@{cntls} nrthreads=5
29 Set Suite Variable ${flows}
31 Check Configured Are Operational
32 Wait Until Keyword Succeeds 110s 20s Check Flows Inventory ${flows} ${CONTROLLER}
35 ${res}= Deconfigure Flows flow_details=${flows} controllers=@{cntls} nrthreads=5
38 Check No Flows In Operational
39 ${noflows}= Create List
40 Wait Until Keyword Succeeds 110s 20s Check Flows Inventory ${noflows} ${CONTROLLER}
44 [Documentation] Starts mininet with requested number of switches (${swnr})
45 Log Starting mininet with ${swnr} switches
46 Open Connection ${MININET} prompt=${DEFAULT_LINUX_PROMPT} timeout=600
47 Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
48 Write sudo ovs-vsctl set-manager ptcp:6644
50 Read Until ${DEFAULT_LINUX_PROMPT}
51 Write sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13
53 Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
54 Wait Until Keyword Succeeds 10s 1s Are Switches Connected Topo
57 [Documentation] Stops mininet
62 Read Until ${DEFAULT_LINUX_PROMPT}
65 Are Switches Connected Topo
66 [Documentation] Checks wheather switches are connected to controller
67 ${resp}= Get session /restconf/operational/network-topology:network-topology/topology/flow:1 headers=${ACCEPT_XML}
69 ${count}= Get Element Count ${resp.content} xpath=node
70 Should Be Equal As Numbers ${count} ${swnr}
73 [Arguments] ${fldets} ${cntl}
74 ${res}= Flow Stats Collected flow_details=${fldets} controller=${cntl}