X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FPerformance_Flow_Config%2F080_Rpc_100k_Flows_Configuration_Time_Measure.robot;h=97a9163e1d2be35173dcf980a670c2ccb7f5e898;hb=HEAD;hp=8a979e5e2f245bda295d46bddd15d4eca420ca9e;hpb=d91788e69351d62c163e9d9266f7c0b02116bc3e;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Performance_Flow_Config/080_Rpc_100k_Flows_Configuration_Time_Measure.robot b/csit/suites/openflowplugin/Performance_Flow_Config/080_Rpc_100k_Flows_Configuration_Time_Measure.robot index 8a979e5e2f..97a9163e1d 100644 --- a/csit/suites/openflowplugin/Performance_Flow_Config/080_Rpc_100k_Flows_Configuration_Time_Measure.robot +++ b/csit/suites/openflowplugin/Performance_Flow_Config/080_Rpc_100k_Flows_Configuration_Time_Measure.robot @@ -1,30 +1,36 @@ *** Settings *** -Documentation Suite to measure setup reate using add-flows-rpc operation -Suite Setup Create Http Session And Upload Files -Suite Teardown Delete Http Session And Store Plot Data -Library OperatingSystem -Library XML -Library SSHLibrary -Variables ../../../variables/Variables.py -Library RequestsLibrary -Library ../../../libraries/Common.py -Library ../../../libraries/ScaleClient.py +Documentation Suite to measure setup reate using add-flows-rpc operation + +Library OperatingSystem +Library XML +Library SSHLibrary +Library RequestsLibrary +Library ../../../libraries/Common.py +Library ../../../libraries/ScaleClient.py +Variables ../../../variables/Variables.py +Resource ../../../variables/openflowplugin/Variables.robot + +Suite Setup Create Http Session And Upload Files +Suite Teardown Delete Http Session And Store Plot Data + *** Variables *** -${swnr} 63 -${flnr} 100000 -${fpr} 25 -${nrthreads} 5 -${swspread} linear -${tabspread} first -@{cntls} ${ODL_SYSTEM_IP} -${start_cmd} sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13 -${getf_cmd} sh ./get-total-found.sh -${getr_cmd} sh ./get-total-reported.sh -${iperiod} 1s -${ichange} 450s -${outfile} flows_setup_time.csv -${setuptime} 0 +${swnr} 63 +${flnr} 100000 +${fpr} 25 +${nrthreads} 5 +${swspread} linear +${tabspread} first +@{cntls} ${ODL_SYSTEM_IP} +${start_cmd} +... sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13 +${getf_cmd} sh ./get-total-found.sh +${getr_cmd} sh ./get-total-reported.sh +${iperiod} 1s +${ichange} 450s +${outfile} flows_setup_time.csv +${setuptime} 0 + *** Test Cases *** Connect Mininet @@ -32,10 +38,18 @@ Connect Mininet Configure Flows [Documentation] Setup of ${flnr} flows using rpc calls - ${flows} ${notes}= Generate New Flow Details flows=${flnr} switches=${swnr} swspread=${swspread} tabspread=${tabspread} + ${flows} ${notes}= Generate New Flow Details + ... flows=${flnr} + ... switches=${swnr} + ... swspread=${swspread} + ... tabspread=${tabspread} Log ${notes} ${starttime}= Get Time epoch - ${res}= Operations Add Flows Rpc flow_details=${flows} controllers=@{cntls} nrthreads=${nrthreads} fpr=${fpr} + ${res}= Operations Add Flows Rpc + ... flow_details=${flows} + ... controllers=@{cntls} + ... nrthreads=${nrthreads} + ... fpr=${fpr} Log ${res} Set Suite Variable ${flows} ${http200ok}= Create List ${200} @@ -50,7 +64,11 @@ Wait Stats Collected Deconfigure Flows [Documentation] Flows deconfiguration - ${res}= Operations Remove Flows Rpc flow_details=${flows} controllers=@{cntls} nrthreads=${nrthreads} fpr=${fpr} + ${res}= Operations Remove Flows Rpc + ... flow_details=${flows} + ... controllers=@{cntls} + ... nrthreads=${nrthreads} + ... fpr=${fpr} Log ${res} ${http200ok}= Create List ${200} ${validation}= Validate Responses ${res} ${http200ok} @@ -64,6 +82,7 @@ Check No Flows In Operational After Remove Stop Mininet End Stop Switches + *** Keywords *** Connect Switches [Documentation] Starts mininet with requested number of switches (${swnr}) @@ -99,29 +118,29 @@ Delete Http Session And Store Plot Data Are Switches Connected Topo [Documentation] Checks wheather switches are connected to controller - ${resp}= Get Request session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML} + ${resp}= GET On Session session url=${RFC8040_OPERATIONAL_TOPO_FLOW1_API} headers=${ACCEPT_XML} Log ${resp.content} ${count}= Get Element Count ${resp.content} xpath=node Should Be Equal As Numbers ${count} ${swnr} Check Flows Inventory - [Arguments] ${rswitches} ${rflows} [Documentation] Checks in inventory has required state + [Arguments] ${rswitches} ${rflows} ${sw} ${repf} ${foundf}= Flow Stats Collected controller=${ODL_SYSTEM_IP} Should Be Equal As Numbers ${rswitches} ${sw} Should Be Equal As Numbers ${rflows} ${foundf} Save Setup Time - [Arguments] ${starttime} [Documentation] Count the difference and stores it + [Arguments] ${starttime} ${endtime}= Get Time epoch Log Stats collection finished at time ${endtime} ${setuptime}= Evaluate int(${endtime})-int(${starttime}) Set Suite Variable ${setuptime} Inventory Change Reached - [Arguments] ${rswitches} ${rflows} [Documentation] This keywordwaits till inventory reaches required state + [Arguments] ${rswitches} ${rflows} Wait Until Keyword Succeeds ${ichange} ${iperiod} Check Flows Inventory ${rswitches} ${rflows} Log Switch Details