Skip to content

Commit

Permalink
Revert "Added condition to check trap status before comparing packet …
Browse files Browse the repository at this point in the history
…rate in …" (sonic-net#11618)

This reverts commit d52d266.
  • Loading branch information
ZhaohuiS authored Feb 5, 2024
1 parent 2d20a08 commit 59bcac1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ansible/roles/test/files/ptftests/py3/copp_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,8 @@ def check_constraints(self, send_count, recv_count, time_delta_ms, rx_pps):
str(self.PPS_LIMIT_MIN <= rx_pps <= self.PPS_LIMIT_MAX))
)

if self.has_trap:
assert self.PPS_LIMIT_MIN <= rx_pps <= self.PPS_LIMIT_MAX, "rx_pps {}".format(rx_pps)
else:
assert rx_pps <= self.PPS_LIMIT_MIN, "rx_pps {}".format(rx_pps)
assert self.PPS_LIMIT_MIN <= rx_pps <= self.PPS_LIMIT_MAX, "rx_pps {}".format(
rx_pps)


# SONIC config contains policer CIR=600 for ARP
Expand Down

0 comments on commit 59bcac1

Please sign in to comment.