Skip to content

Commit

Permalink
Adding cisco-8000 to the list of platforms for forward action. (#6068)
Browse files Browse the repository at this point in the history
For cisco-8000 platforms, set forward action on Rx in presence of pfc-wd
Change is made after: #5665
  • Loading branch information
rraghav-cisco authored and wangxin committed Aug 4, 2022
1 parent 76556e8 commit 88f4e19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/pfcwd/test_pfcwd_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def run_test(self, dut, port, action, mmu_action=None):

def set_traffic_action(self, duthost, action):
action = action if action != "dontcare" else "drop"
if duthost.facts["asic_type"] == "mellanox":
if duthost.facts["asic_type"] in ["mellanox", "cisco-8000"]:
self.rx_action = "forward"
else:
self.rx_action = action
Expand Down
2 changes: 1 addition & 1 deletion tests/pfcwd/test_pfcwd_warm_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def verify_wd_func(self, dut, detect=True):
tx_action = "forward"
wd_action = "forward"

if dut.facts['asic_type'] == 'mellanox':
if dut.facts['asic_type'] in ['mellanox', 'cisco-8000']:
rx_action = "forward"

logger.info("--- Verify PFCwd function for pfcwd action {}, Tx traffic {}, Rx traffic {} ---".format(wd_action, tx_action, rx_action))
Expand Down

0 comments on commit 88f4e19

Please sign in to comment.