Skip to content

Commit 6fc38af

Browse files
authored
Remove fan LED initialization from led_control plugins for Arista 7050-QX32, 7050-QX-32S (#1733)
1 parent ea465db commit 6fc38af

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

device/arista/x86_64-arista_7050_qx32/plugins/led_control.py

-10
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,6 @@ def __init__(self):
8585
with open("/sys/class/leds/psu2/brightness", "w") as f:
8686
f.write("1")
8787

88-
# Initialize all fan LEDs to green
89-
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan1_led", "w") as f:
90-
f.write("3")
91-
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan2_led", "w") as f:
92-
f.write("3")
93-
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan3_led", "w") as f:
94-
f.write("3")
95-
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan4_led", "w") as f:
96-
f.write("3")
97-
9888
# Initialize: Turn all front panel QSFP LEDs off
9989
for qsfp_index in range(self.QSFP_BREAKOUT_START_IDX, self.QSFP_BREAKOUT_END_IDX + 1):
10090
for lane in range(1, 5):

device/arista/x86_64-arista_7050_qx32s/plugins/led_control.py

-11
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,6 @@ def __init__(self):
8080
with open("/sys/class/leds/psu2/brightness", "w") as f:
8181
f.write("1")
8282

83-
# Initialize all fan LEDs to green
84-
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan1_led", "w") as f:
85-
f.write("1")
86-
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan2_led", "w") as f:
87-
f.write("1")
88-
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan3_led", "w") as f:
89-
f.write("1")
90-
with open("/sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/i2c-3/3-0060/hwmon/hwmon4/fan4_led", "w") as f:
91-
f.write("1")
92-
93-
9483
# Initialize: Turn all front panel QSFP LEDs off
9584
for qsfp_index in range(self.QSFP_BREAKOUT_START_IDX, self.QSFP_BREAKOUT_END_IDX + 1):
9685
for lane in range(1, 5):

0 commit comments

Comments
 (0)