Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
veronica-arista committed Jan 22, 2025
1 parent 8364bf8 commit bce1f84
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/common/helpers/pfc_storm.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ def _get_sonic_fanout_hwsku(self):
cmd = 'show version'
out_lines = self.peer_device.shell(cmd)['stdout_lines']
for line in out_lines:
if line.startswith('HwSKU:'):
return line.split()[1]

def deploy_pfc_gen(self):
"""
Deploy the pfc generation file on the fanout
"""
if self.peer_device.os in ('eos', 'sonic'):
if line.startswith('HwSKU:'):
return line.split()[1]

def deploy_pfc_gen(self):
"""
Deploy the pfc generation file on the fanout
"""
if self.peer_device.os in ('eos', 'sonic'):
if ((self.peer_device.os == 'eos' and self._get_eos_fanout_version()[0].startswith('Arista DCS-7060X6')) or
(self.peer_device.os == 'sonic' and self._get_sonic_fanout_hwsku().startswith('Arista-7060X6-64'))):
self.pfc_gen_file = "pfc_gen_th5.py"
Expand Down

0 comments on commit bce1f84

Please sign in to comment.