Skip to content

Commit

Permalink
Merge pull request sonic-net#338 from saksarav-nokia/saksarav-nokia-t…
Browse files Browse the repository at this point in the history
…sa-tsb

Fix for Bug in tsa-tsb script
  • Loading branch information
gechiang committed Apr 18, 2024
2 parents 7a3c3f2 + 388fa58 commit 2fc6aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/scripts/startup_tsa_tsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ def get_tsa_config(asic_ns):
def get_tsa_status(num_asics):
if num_asics > 1:
counter = 0
for asic_id in range(int(asic_num)):
for asic_id in range(int(num_asics)):
asic_ns = 'asic{}'.format(asic_id)
sub_role = get_sub_role(asic_ns)
if sub_role == 'FrontEnd':
tsa_enabled = get_tsa_config(asic_ns)
if tsa_enabled == 'false':
counter += 1
if counter == int(asic_num):
if counter == int(num_asics):
return True;
else:
tsa_enabled = get_tsa_config("")
Expand Down

0 comments on commit 2fc6aa9

Please sign in to comment.