Remove fan LED initialization from led_control plugins for Arista 7050-QX32, 7050-QX-32S (#1733)
This commit is contained in:
parent
ea465db046
commit
6fc38af2f0
@ -85,16 +85,6 @@ class LedControl(LedControlBase):
|
||||
with open("/sys/class/leds/psu2/brightness", "w") as f:
|
||||
f.write("1")
|
||||
|
||||
# Initialize all fan LEDs to green
|
||||
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan1_led", "w") as f:
|
||||
f.write("3")
|
||||
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan2_led", "w") as f:
|
||||
f.write("3")
|
||||
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan3_led", "w") as f:
|
||||
f.write("3")
|
||||
with open("/sys/devices/platform/sb800-fans/hwmon/hwmon1/fan4_led", "w") as f:
|
||||
f.write("3")
|
||||
|
||||
# Initialize: Turn all front panel QSFP LEDs off
|
||||
for qsfp_index in range(self.QSFP_BREAKOUT_START_IDX, self.QSFP_BREAKOUT_END_IDX + 1):
|
||||
for lane in range(1, 5):
|
||||
|
@ -80,17 +80,6 @@ class LedControl(LedControlBase):
|
||||
with open("/sys/class/leds/psu2/brightness", "w") as f:
|
||||
f.write("1")
|
||||
|
||||
# Initialize all fan LEDs to green
|
||||
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:
|
||||
f.write("1")
|
||||
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:
|
||||
f.write("1")
|
||||
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:
|
||||
f.write("1")
|
||||
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:
|
||||
f.write("1")
|
||||
|
||||
|
||||
# Initialize: Turn all front panel QSFP LEDs off
|
||||
for qsfp_index in range(self.QSFP_BREAKOUT_START_IDX, self.QSFP_BREAKOUT_END_IDX + 1):
|
||||
for lane in range(1, 5):
|
||||
|
Loading…
Reference in New Issue
Block a user