Skip to content

Commit

Permalink
leds: Fix leds to handle backplane interfaces
Browse files Browse the repository at this point in the history
Change-Id: Iee3fb331255e429e395fccc309cf32f15b201563
  • Loading branch information
bobbymcgonigle authored and Staphylo committed Jan 15, 2025
1 parent ecff3e6 commit 526fcf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arista/utils/sonic_leds.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def __init__(self):
def _setIntfColor(self, port, idx, color):
color = color + 10 if self.tricolor else color
portList = self.portSysfsMapping[port.portNum]
if not portList:
return
offset = port.offset
if len(portList) == 1:
# Some ports have only has one led
Expand Down

0 comments on commit 526fcf6

Please sign in to comment.