Skip to content

Commit 0c2819b

Browse files
zjswhhhvaibhavhd
andauthored
[advanced-reboot][dualtor] Update Loopback0 ping test: expect same count for sent and rcvd packets (#9599) (#10068)
Raising PR for cherry-pick conflict: 225e257 [advanced-reboot][dualtor] Update Loopback0 ping test: expect same count for sent and rcvd packets (#9599) Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR #9089 is merged. Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0. Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder. This essentially reverts part of older PR: #6968 How did you verify/test it? Tested on a physical testbed and this test issue is not seen. The test is now able to see the responses of ping packets Co-authored-by: Vaibhav Hemant Dixit <[email protected]>
1 parent c2b2f42 commit 0c2819b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

ansible/roles/test/files/ptftests/advanced-reboot.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,11 +2032,6 @@ def pingDut(self):
20322032

20332033
total_rcv_pkt_cnt = testutils.count_matched_packets_all_ports(self, self.ping_dut_exp_packet, self.vlan_ports, timeout=self.PKT_TOUT)
20342034

2035-
if self.is_dualtor:
2036-
# handle two-for-one icmp reply for dual tor (when vlan and dut mac are diff):
2037-
# icmp_responder will also generate a response for this ICMP req, ignore that reply
2038-
total_rcv_pkt_cnt = total_rcv_pkt_cnt - self.ping_dut_pkts
2039-
20402035
self.log("Send %5d Received %5d ping DUT" % (self.ping_dut_pkts, total_rcv_pkt_cnt), True)
20412036

20422037
return total_rcv_pkt_cnt

0 commit comments

Comments
 (0)