From 674032dab37c2af528a03665e8bb1d6c555f9c94 Mon Sep 17 00:00:00 2001 From: Mein Hsu Date: Wed, 26 Jul 2023 14:43:43 +0800 Subject: [PATCH] [pfcwd] Adding innovium to the list of platforms for forward action Modify the testcase to check for ingress traffic getting forwarded in innovium platform. Related to PR#2304 --- tests/pfcwd/test_pfcwd_function.py | 2 +- tests/pfcwd/test_pfcwd_warm_reboot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pfcwd/test_pfcwd_function.py b/tests/pfcwd/test_pfcwd_function.py index 115922a92dc..931e4c4a1e4 100644 --- a/tests/pfcwd/test_pfcwd_function.py +++ b/tests/pfcwd/test_pfcwd_function.py @@ -717,7 +717,7 @@ def run_test(self, dut, port, action, mmu_action=None, detect=True, restore=True def set_traffic_action(self, duthost, action): action = action if action != "dontcare" else "drop" - if duthost.facts["asic_type"] in ["mellanox", "cisco-8000"] or is_tunnel_qos_remap_enabled(duthost): + if duthost.facts["asic_type"] in ["mellanox", "cisco-8000", "innovium"] or is_tunnel_qos_remap_enabled(duthost): self.rx_action = "forward" else: self.rx_action = action diff --git a/tests/pfcwd/test_pfcwd_warm_reboot.py b/tests/pfcwd/test_pfcwd_warm_reboot.py index cd1bd0deace..2604667fc13 100644 --- a/tests/pfcwd/test_pfcwd_warm_reboot.py +++ b/tests/pfcwd/test_pfcwd_warm_reboot.py @@ -298,7 +298,7 @@ def verify_wd_func(self, dut, detect=True): tx_action = "forward" wd_action = "forward" - if dut.facts['asic_type'] in ['mellanox', 'cisco-8000']: + if dut.facts['asic_type'] in ['mellanox', 'cisco-8000', 'innovium']: rx_action = "forward" logger.info("--- Verify PFCwd function for pfcwd action {}, Tx traffic {}, Rx traffic {} ---"