2 Documentation Test suite for H2 DataStore Flow Table Metrics Verification
3 Suite Setup Start Tsdr Suite
4 Suite Teardown Stop Tsdr Suite
8 Library ../../../libraries/Common.py
9 Resource ../../../libraries/KarafKeywords.robot
10 Resource ../../../libraries/TsdrUtils.robot
11 Variables ../../../variables/Variables.py
14 @{FLOWTABLE_METRICS} ActiveFlows PacketLookup PacketMatch
15 ${TSDR_FLOWTABLE_STATS} tsdr:list FlowTableStats
18 Verification of TSDR FlowTableStats
19 [Documentation] Verify the TSDR FlowiTableStats
20 Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_FLOWTABLE_STATS}| grep ActiveFlow FLOWTABLESTATS
21 ${output}= Issue Command On Karaf Console ${TSDR_FLOWTABLE_STATS}| grep openflow:1 | head ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 180
22 : FOR ${list} IN @{FLOWTABLE_METRICS}
23 \ Should Contain ${output} ${list}
25 Verify FlowTableStats-Attributes on H2 Datastore using JDBC Client
26 [Documentation] Verify the PortStats,attributes on H2 Datastore using JDBC Client
27 : FOR ${list} IN @{FLOWTABLE_METRICS}
28 \ ${output}= Query Metrics on H2 Datastore FLOWTABLESTATS ${list}
29 \ Should Contain ${output} ${list}