2 Documentation Test suite to verify if the PDU count for the LACP flow entry is getting updated
\r
3 Suite Setup LACP Inventory Suite Setup
\r
4 Suite Teardown Delete All Sessions
\r
8 Library RequestsLibrary
\r
9 Library ../../../libraries/Common.py
\r
10 Resource ../../../libraries/Utils.robot
\r
11 Variables ../../../variables/Variables.py
\r
17 Verify Switch S1 LACP flow entry packet hit doesn't display zero value
\r
18 [Documentation] Verify the LACP flow entry packet hit stats doesn't display zero value on the Switch S1
\r
19 ${result}= Run Command On Remote System ${MININET} sudo ovs-ofctl dump-flows s1 -O OpenFlow13
\r
20 Comment ${result} Read Until mininet>
\r
21 Should Not Contain ${result} n_packets=0
\r
22 Should Not Contain ${result} n_bytes=0
\r
24 Verify Switch S1 Port stats doesn't display zero value
\r
25 [Documentation] Verify the port stats for the Switch S1 doesn't display value with zero
\r
26 ${result}= Run Command On Remote System ${MININET} sudo ovs-ofctl dump-ports s1 -O OpenFlow13 ${MININET_USER} #
\r
27 Comment ${result} Read Until mininet>
\r
28 ${port1}= Get Lines Containing String ${result} 1:
\r
29 Should Not Contain ${port1} rx pkts=0
\r
30 Should Not Contain ${port1} bytes=0
\r
31 ${port2}= Get Lines Containing String ${result} 2:
\r
32 Should Not Contain ${port2} rx pkts=0
\r
33 Should Not Contain ${port2} bytes=0
\r
34 ${port3}= Get Lines Containing String ${result} 3:
\r
35 Should Not Contain ${port3} rx pkts=0
\r
36 Should Not Contain ${port3} bytes=0
\r
37 ${port4}= Get Lines Containing String ${result} 4:
\r
38 Should Not Contain ${port4} rx pkts=0
\r
39 Should Not Contain ${port4} bytes=0
\r
42 Verify LACP RESTAPI Response Code for node
\r
43 [Documentation] Will check for the response code of the REST query
\r
44 Should Be Equal As Strings ${resp.status_code} 200
\r
45 Should Contain ${resp.content} ${node1}
\r
47 Verify LACP RESTAPI Aggregator and Tag Contents
\r
48 [Arguments] ${resp.content} ${content-lookup}
\r
49 [Documentation] Will check for the LACP Specific tags or Aggregator ID for node
\r
50 Should Contain ${resp.content} ${content-lookup}
\r
52 Verify LACP Tags Are Formed
\r
53 [Documentation] Fundamental Check That LACP is working
\r
54 ${resp} RequestsLibrary.Get session ${OPERATIONAL_NODES_API}
\r
55 Verify LACP RESTAPI Response Code for node
\r
56 Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} non-lag-groupid
\r
57 Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lacp-aggregators
\r
59 LACP Inventory Suite Setup
\r
60 [Documentation] If these basic checks fail, there is no need to continue any of the other test cases
\r
61 Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
\r
62 Wait Until Keyword Succeeds 15s 1s Verify LACP Tags Are Formed
\r