2 Documentation Test suite for Cassandra DataStore Queue Stats Verification
3 Suite Setup Initialize Cassandra Tables Metricval
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 @{QUEUE_METRICS} TransmittedPackets TransmittedBytes TransmissionErrors
15 ${TSDR_QUEUESTATS} tsdr:list QueueStats
16 ${QUERY_HEAD} ${OPERATIONAL_NODES_API}/node
17 ${query_head1} ${QUERY_HEAD}/openflow:2/node-connector/openflow:2:2/queue/
21 ${transmittedpackets} flow-capable-node-connector-queue-statistics/transmitted-packets
22 ${transmittedbytes} flow-capable-node-connector-queue-statistics/transmitted-bytes
23 ${transmittederrors} flow-capable-node-connector-queue-statistics/transmission-errors
30 Verification of TSDR Cassandra Feature Installation
31 [Documentation] Install and Verify the TSDR Cassandra Features
32 COMMENT Install a Feature odl-tsdr-cassandra-all ${CONTROLLER} ${KARAF_SHELL_PORT} 60
33 Verify Feature Is Installed odl-tsdr-cassandra
34 COMMENT Verify Feature Is Installed odl-tsdr-cassandra-persistence
35 Verify Feature Is Installed odl-tsdr-openflow-statistics-collector
37 Configuration of Queue on Switch
39 Wait Until Keyword Succeeds 5x 30 sec Check Metric path 24\\d+|25\\d+|26\\d+|27\\d+
40 Wait Until Keyword Succeeds 5x 30 sec Check Metric val \\d{5}
42 Getting all Tables from Openflow Plugin
43 [Documentation] Getting Queue Stats from openflow plugin
44 ${ret}= Get Stats XML ${query_head1}0/ ${transmittederrors}
45 Append To List ${openflow_q0} ${ret}
46 ${ret}= Get Stats XML ${query_head1}0/ ${transmittedpackets}
47 Append To List ${openflow_q0} ${ret}
48 ${ret}= Get Stats XML ${query_head1}0/ ${transmittedbytes}
49 Append To List ${openflow_q0} ${ret}
51 Set Suite Variable @{openflow_q0}
54 ${ret}= Get Stats XML ${query_head1}1/ ${transmittederrors}
55 Append To List ${openflow_q1} ${ret}
56 ${ret}= Get Stats XML ${query_head1}1/ ${transmittedpackets}
57 Append To List ${openflow_q1} ${ret}
58 ${ret}= Get Stats XML ${query_head1}1/ ${transmittedbytes}
59 Append To List ${openflow_q1} ${ret}
61 Set Suite Variable @{openflow_q1}
64 ${ret}= Get Stats XML ${query_head1}2/ ${transmittederrors}
65 Append To List ${openflow_q2} ${ret}
66 ${ret}= Get Stats XML ${query_head1}2/ ${transmittedpackets}
67 Append To List ${openflow_q2} ${ret}
68 ${ret}= Get Stats XML ${query_head1}2/ ${transmittedbytes}
69 Append To List ${openflow_q2} ${ret}
71 Set Suite Variable @{openflow_q2}
74 Verification of FlowStats-Attributes on Cassandra Data Store
75 [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store
77 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0
78 Append To List ${tsdr_q0} ${ret_val1}
79 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0
80 Append To List ${tsdr_q0} ${ret_val1}
81 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0
82 Append To List ${tsdr_q0} ${ret_val1}
86 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1
87 Append To List ${tsdr_q1} ${ret_val1}
88 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1
89 Append To List ${tsdr_q1} ${ret_val1}
90 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1
95 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2
96 Append To List ${tsdr_q2} ${ret_val1}
97 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2
98 Append To List ${tsdr_q2} ${ret_val1}
99 ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2
100 Append To List ${tsdr_q2} ${ret_val1}
103 Comparing Queue Metrics
104 [Documentation] Comparing Queue metrics between Cassandra and OF plugin
106 : FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q0} ${tsdr_q0}
107 \ Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20
109 : FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q1} ${tsdr_q1}
110 \ Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20
112 : FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q2} ${tsdr_q2}
113 \ Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20
118 Configuration of Queue on Switch
119 [Documentation] Queue configuration on openvswitch
120 Configure the Queue on Switch s2-eth2