*** Settings *** Documentation Test suite for HSQLDB DataStore Flow Table Metrics Verification Suite Setup Start Tsdr Suite Suite Teardown Stop Tsdr Suite Library SSHLibrary Library Collections Library String Library ../../../libraries/Common.py Resource ../../../libraries/KarafKeywords.robot Resource ../../../libraries/TsdrUtils.robot Variables ../../../variables/Variables.py *** Variables *** @{FLOWTABLE_METRICS} ActiveFlows PacketLookup PacketMatch *** Test Cases *** Init Variables [Documentation] Initialize ODL version specific variables log ${ODL_VERSION} Run Keyword If '${ODL_VERSION}' == 'stable-lithium' Init Variables Lithium ... ELSE Init Variables Master Verification of TSDR FLOWTABLESTATS [Documentation] Verify the TSDR FlowiTableStats Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_FLOWTABLE_STATS}| grep ActiveFlow | grep openflow:1 FLOWTABLESTATS ${output}= Issue Command On Karaf Console ${TSDR_FLOWTABLE_STATS}| grep openflow:1 | head ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 180 : FOR ${list} IN @{FLOWTABLE_METRICS} \ Should Contain ${output} ${list} *** Keywords *** Init Variables Master [Documentation] Sets variables specific to latest(master) version Set Suite Variable ${TSDR_FLOWTABLE_STATS} tsdr:list FLOWTABLESTATS Init Variables Lithium [Documentation] Sets variables specific to Lithium version Set Suite Variable ${TSDR_FLOWTABLE_STATS} tsdr:list FlowTableStats