Add 1 sec sleep to avoid packet storm in the loop test.
Remove bad checking in loop test, a port down can show discard.
Add WUKS for all ping tests.
Change-Id: I5879bb2a89a9cee0cd38d61ba1263c45d7e5b1cf
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
Ping All
[Documentation] Pingall, verify no packet loss
- Write pingall
- ${result} Read Until mininet>
- Should Contain ${result} Results: 0% dropped
+ Wait Until Keyword Succeeds 10s 2s Ping All Works Good
Check node 1 addresses
[Documentation] Get the address observations for node 1
@{list} Create List ${IP_1} ${IP_2}
Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_NODES_API}/node/openflow:3 ${IP_3} 1
Wait Until Keyword Succeeds 10s 2s Check For Elements Not At URI ${OPERATIONAL_NODES_API}/node/openflow:3 ${list}
+
+*** Keywords ***
+Ping All Works Good
+ Write pingall
+ ${result} Read Until mininet>
+ Should Contain ${result} Results: 0% dropped
Ping All
[Documentation] Pingall, verify no packet loss
- Write pingall
- ${result} Read Until mininet>
- Should Contain ${result} Results: 0% dropped
+ Wait Until Keyword Succeeds 10s 2s Ping All Works Good
Check Host Links
[Documentation] Get the topology and check links
Write pingall
Read Until mininet>
Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} "node-id":"host:${MAC_1}" 1
+
+*** Keywords ***
+Ping All Works Good
+ Write pingall
+ ${result} Read Until mininet>
+ Should Contain ${result} Results: 0% dropped
Ping Test
[Documentation] Ping h1 to h2, verify no packet loss or duplicates
+ # This sleep is needed because if the ping in the below WUKS is launched before the STP effectively removes the link,
+ # it produces a packet storm in mininet that makes the test unresponsive.
+ Sleep 1
Wait Until Keyword Succeeds 10s 2s Ping Works Good
Link Down
[Documentation] Remove port s1-eth2 and verify ping works
Write sh ovs-vsctl del-port s1 s1-eth2
Read Until mininet>
- @{list} Create List ${DISCARD}
- Wait Until Keyword Succeeds 10s 2s Check For Elements Not At URI ${OPERATIONAL_NODES_API} ${list}
Wait Until Keyword Succeeds 10s 2s Ping Works Good
Add Port