From 59bcac155474827afd174279677f0b391589735b Mon Sep 17 00:00:00 2001 From: Zhaohui Sun <94606222+ZhaohuiS@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:26:03 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Added=20condition=20to=20check=20trap?= =?UTF-8?q?=20status=20before=20comparing=20packet=20rate=20in=20=E2=80=A6?= =?UTF-8?q?"=20(#11618)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d52d266a83fb2aa0de14523f190f7dc3819b322e. --- ansible/roles/test/files/ptftests/py3/copp_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ansible/roles/test/files/ptftests/py3/copp_tests.py b/ansible/roles/test/files/ptftests/py3/copp_tests.py index 4c3a19237dc..723f68326a5 100644 --- a/ansible/roles/test/files/ptftests/py3/copp_tests.py +++ b/ansible/roles/test/files/ptftests/py3/copp_tests.py @@ -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