Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
3726c9f
Update swss submodule pointer (#1641)
andriymoroz-mlnx Apr 25, 2018
4dc327d
[submodule]: Update submodule sonic-snmpagent (#1642)
qiluo-msft Apr 25, 2018
65b3774
[nehpos] fix libsainps and nps-sdk bug for support sai 1.2.4 (#1639)
simonJi2018 Apr 26, 2018
8d2a30a
[kernel]: update sonic linux kernel (#1645)
lguohan Apr 26, 2018
d269263
[baseimage]: add screen package (#1644)
lguohan Apr 26, 2018
321ff4e
[swss]: update sonic-swss (#1638)
lguohan Apr 26, 2018
3993e58
[updategraph]: Keep updategraph service active after start (#1651)
prsunny Apr 26, 2018
18e97fb
[docker-lldpd]: Various fixes (#1650)
pavel-shirshov Apr 27, 2018
764d081
[sonic-utilities]: Submodule update for sonic-utilities (#1653)
prsunny Apr 27, 2018
02f706a
[mellanox]: Update SAI version to 1.11.4 and SDK to 4.2.7303 (#1655)
andriymoroz-mlnx Apr 28, 2018
8d3c5fb
[docker-dhcp]: Fix the sonic build issue (#1659)
zhenggen-xu Apr 30, 2018
3ed4513
[minigraph.py] Fix an issue that mirror table might be considered ctr…
taoyl-ms Apr 30, 2018
f3426e3
Decrease usable space in log partition to 90% (#1648)
andriymoroz-mlnx Apr 30, 2018
1ae4db3
Quagga: Use bgp keepalive and holdtime timers from configdb (#1661)
pavel-shirshov Apr 30, 2018
3d61df9
Remove snmpd hw_fsys module, remove disk monitoring which are not in …
qiluo-msft May 1, 2018
c74be37
[swss]: update swss submodule (#1664)
lguohan May 1, 2018
5817e99
Revert "Remove snmpd hw_fsys module, remove disk monitoring which is …
qiluo-msft May 2, 2018
bebb7a0
[zebra.conf] Fix template issue with multiple lo addresses (#1662)
taoyl-ms May 2, 2018
e082cd6
[swss]: Change the hash seed to 0 for ToR and 10 for Leaf routers (#1…
May 2, 2018
74e8bea
[snmp]: Stop spamming logs with statfs permission denied log message …
pavel-shirshov May 2, 2018
9a23770
[broadcom]: update broadcom SAI to 3.1.3.4-11 (#1670)
lguohan May 2, 2018
832be7b
[dockers] Prevent apt-get from installing suggested and recommended p…
jleveque May 2, 2018
0c9e8ee
Revert "Fix the sonic build issue" (#1671)
jleveque May 2, 2018
e07687f
[sonic-platform-common] Update submodule (#1672)
jleveque May 4, 2018
724aaf1
[device] Update arista driver submodule (#1674)
Staphylo May 4, 2018
f3f8b9f
[syncd]: Add socat and bcmsh wrapper (#1657)
qiluo-msft May 4, 2018
c63b828
40G profile for Arista 7060 (#1677)
prsunny May 7, 2018
872f69a
Update buffers config for Mellanox 27xx devices (#1649)
andriymoroz-mlnx May 8, 2018
d62c6ff
[mellanox]: Update MLNX SAI pointer (#1683)
May 8, 2018
32dc2cd
[utilities]: Update sonic-utilities submodule (#1687)
May 10, 2018
685282d
[submodule]: Update submodule sonic-snmpagent: Improve mib fundamenta…
qiluo-msft May 10, 2018
1102ace
[ledd] Exit with code 0 if we fail to find a platform-specific led_co…
jleveque May 10, 2018
d7cd056
[minigraph parser] Fix minigraph parser issue when handling LAG rela…
keboliu May 10, 2018
dc93889
Revert "[minigraph parser] Fix minigraph parser issue when handling …
May 10, 2018
e900369
[slave.mk] Define SPACE variable differently such that the line doesn…
jleveque May 11, 2018
931b5de
[quagga]: update quagga submodule (#1698)
lguohan May 11, 2018
d692905
[swss]: Update sonic-swss submodule (#1699)
May 11, 2018
2d37aa8
[submodule]: Update submodule sonic-snmpagent: Improve mib fundamenta…
qiluo-msft May 12, 2018
5e64310
[baseimage]: Disable DAD for eth0 explicitly (#1701)
prsunny May 12, 2018
e9672b2
[devices]: Add inventec D7032 D7054 platform psustatus (#1696)
May 12, 2018
e55778f
Update sonic-sairedis (#1705)
pavel-shirshov May 15, 2018
c1e37a6
[Arista]: Add a reboot script for all remaining platforms. (#1706)
Staphylo May 15, 2018
76d9de5
[fast-reboot]: support encoded & gzipped minigraph in fast reboot (#1…
lguohan May 16, 2018
6b8e340
[dhcp_relay] Only attempt to start 'isc-dhcp-relay' group if it is no…
jleveque May 16, 2018
174960c
[mellanox]: Update FW pointer (#1721)
May 17, 2018
eb9b86a
[vs]: add teamd test on vs platform (#1720)
lguohan May 17, 2018
9e8883b
Update sonic-sairedis and sonic-swss submodules (#1724)
pavel-shirshov May 17, 2018
74aa482
[devices]: Reverting the xoff value for Arista 7060 t0 topology (#1726)
prsunny May 18, 2018
c0bb2e0
[devices]: add Mellanox-SN2700-D48C8 hwsku (#1717)
lguohan May 18, 2018
46dc46e
[submodule update]: sonic-swss. Don't collect unwanted counters (#1729)
pavel-shirshov May 19, 2018
5feb363
[device/dell] Add z9100 pfc T0 support (#1708)
vharish02 May 21, 2018
d261506
[device/dell] Add z9100 pfc T1 support (#1707)
vharish02 May 21, 2018
c055dd2
[submodule]: Update submodule sonic-snmpagent: power_status_handler h…
qiluo-msft May 22, 2018
ea465db
[devices]: update dx010 fan configuration (#1735)
May 23, 2018
6fc38af
Remove fan LED initialization from led_control plugins for Arista 705…
jleveque May 24, 2018
d32c043
[sonic-cfggen]: Protect config_db.json from minigraph misconfig (#1727)
wendani May 24, 2018
4d56468
[broadcom sai] upgrade Broadcom SAI to version 3.1.3.4-12 (#1740)
yxieca May 24, 2018
d165a50
[sairedis] update sairedis sub-module (#1741)
yxieca May 25, 2018
bb6ff62
[service] introducing serial port watchdog service (#1743)
yxieca May 25, 2018
46c2d34
[docker_image_ctl]: Add --force while removing obsolete dockers (#1744)
May 26, 2018
a917517
[minigraph parser] Fix minigraph parser issue when handling LAG relat…
keboliu May 26, 2018
225b3e5
Fix a bug that default graph might be missing when generating minimal…
taoyl-ms May 29, 2018
2d7046c
Add QoS and Buffers configs for Mellanox MSN2100 and MSN2410 (#1739)
andriymoroz-mlnx May 30, 2018
c105717
[serial watchdog] remove serial watchdog service dependency to rc.loc…
yxieca May 31, 2018
a6d2d77
Fix links of debian git server (#1755)
qiluo-msft Jun 1, 2018
54046d4
[devices]: change S6100 to use new ECN/WRED config (#1749)
wendani Jun 1, 2018
e7d17c0
[broadcom]: update brcm sai to 3.1.3.4-13 (#1760)
lguohan Jun 1, 2018
b58a94d
[sonic-mgmt]: Install the latest Microsoft Azure Kusto Library for Py…
Jun 1, 2018
d54a7ae
[baseimage] Adding setuid permissions to ping binaries, so sudo is no…
qiluo-msft Jun 5, 2018
eee3671
Revert the feature: serial port watchdog service (#1766)
qiluo-msft Jun 5, 2018
711be8f
[caclmgrd] Heuristically determine whether ACL is IPv4 or IPv6, use i…
jleveque Jun 5, 2018
0ff7ba6
[sai.profile] move hwsku specific device configs to device/mellanox/p…
mykolaf Jun 6, 2018
83d9c7e
[bcmsh] Fix the bcmsh issues. (#1761)
zhenggen-xu Jun 6, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
gdisk \
sysfsutils \
grub2-common \
ethtool
ethtool \
screen

sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y download \
grub-pc-bin
Expand All @@ -238,6 +239,12 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i target/debs/libwrap0_*.deb || \
## Disable kexec supported reboot which was installed by default
sudo sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT/etc/default/kexec

## Fix ping tools permission so non root user can directly use them
## Note: this is a workaround since aufs doesn't support extended attributes
## Ref: https://github.com/moby/moby/issues/5650#issuecomment-303499489
## TODO: remove workaround when the overlay filesystem support extended attributes
sudo chmod u+s $FILESYSTEM_ROOT/bin/ping{,6}

## Remove sshd host keys, and will regenerate on first sshd start
sudo rm -f $FILESYSTEM_ROOT/etc/ssh/ssh_host_*_key*
sudo cp files/sshd/host-ssh-keygen.sh $FILESYSTEM_ROOT/usr/local/bin/
Expand Down Expand Up @@ -300,6 +307,7 @@ set /files/etc/sysctl.conf/net.ipv6.conf.eth0.forwarding 0

set /files/etc/sysctl.conf/net.ipv6.conf.default.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.all.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_dad 0

set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_ra_defrtr 0

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
153 changes: 153 additions & 0 deletions device/accton/x86_64-accton_as7116_54x-r0/Accton-AS7116-54X/qos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"TC_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
"0": "1",
"1": "0",
"3": "3",
"4": "4"
}
},
"MAP_PFC_PRIORITY_TO_QUEUE": {
"AZURE": {
"3": "3",
"4": "4"
}
},
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "1",
"1": "0",
"3": "3",
"4": "4"
}
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"1",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"11":"0",
"12":"0",
"13":"0",
"14":"0",
"15":"0",
"16":"0",
"17":"0",
"18":"0",
"19":"0",
"20":"0",
"21":"0",
"22":"0",
"23":"0",
"24":"0",
"25":"0",
"26":"0",
"27":"0",
"28":"0",
"29":"0",
"30":"0",
"31":"0",
"32":"0",
"33":"0",
"34":"0",
"35":"0",
"36":"0",
"37":"0",
"38":"0",
"39":"0",
"40":"0",
"41":"0",
"42":"0",
"43":"0",
"44":"0",
"45":"0",
"46":"0",
"47":"0",
"48":"0",
"49":"0",
"50":"0",
"51":"0",
"52":"0",
"53":"0",
"54":"0",
"55":"0",
"56":"0",
"57":"0",
"58":"0",
"59":"0",
"60":"0",
"61":"0",
"62":"0",
"63":"0"
}
},
"SCHEDULER": {
"scheduler.0" : {
"type":"DWRR",
"weight": "25"
},
"scheduler.1" : {
"type":"DWRR",
"weight": "30"
},
"scheduler.2" : {
"type":"DWRR",
"weight": "20"
}
},
"PORT_QOS_MAP": {
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
"pfc_enable": "3,4"
}
},
"WRED_PROFILE": {
"AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"wred_red_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"516096",
"red_min_threshold":"516096",
"yellow_max_threshold":"516096",
"yellow_min_threshold":"516096",
"green_max_threshold": "184128",
"green_min_threshold": "184128"
},
"AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"wred_red_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"516096",
"red_min_threshold":"516096",
"yellow_max_threshold":"516096",
"yellow_min_threshold":"516096",
"green_max_threshold": "184128",
"green_min_threshold": "184128"
}
},
"QUEUE": {
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53|3-4" : {
"scheduler" : "[SCHEDULER|scheduler.0]",
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
},
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53|0" : {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet5,Ethernet6,Ethernet7,Ethernet8,Ethernet9,Ethernet10,Ethernet11,Ethernet12,Ethernet13,Ethernet14,Ethernet15,Ethernet16,Ethernet17,Ethernet18,Ethernet19,Ethernet20,Ethernet21,Ethernet22,Ethernet23,Ethernet24,Ethernet25,Ethernet26,Ethernet27,Ethernet28,Ethernet29,Ethernet30,Ethernet31,Ethernet32,Ethernet33,Ethernet34,Ethernet35,Ethernet36,Ethernet37,Ethernet38,Ethernet39,Ethernet40,Ethernet41,Ethernet42,Ethernet43,Ethernet44,Ethernet45,Ethernet46,Ethernet47,Ethernet48,Ethernet49,Ethernet50,Ethernet51,Ethernet52,Ethernet53|1" : {
"scheduler" : "[SCHEDULER|scheduler.2]"
}
}
}
87 changes: 87 additions & 0 deletions device/arista/x86_64-arista_7050_qx32/platform_reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/usr/bin/env python
# Copyright (c) 2018 Arista Networks, Inc. All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.

# Reboot script for 7050QX-32

from __future__ import print_function
import sys
import mmap, os
import subprocess
from struct import pack, unpack

class MmapResource( object ):
"""Resource implementation for a directly-mapped memory region."""

def __init__( self, path ):
try:
fd = os.open( path, os.O_RDWR )
except EnvironmentError:
print( "FAIL can not open scd memory-map resource file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
try:
size = os.fstat( fd ).st_size
except EnvironmentError:
print( "FAIL can not fstat scd memory-map resource file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
try:
self.mmap_ = mmap.mmap( fd, size, mmap.MAP_SHARED,
mmap.PROT_READ | mmap.PROT_WRITE )
except EnvironmentError:
print( "FAIL can not map scd memory-map file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
finally:
try:
# Note that closing the file descriptor has no effect on the memory map
os.close( fd )
except EnvironmentError:
print( "FAIL failed to close scd memory-map file" )
sys.exit( 1 )

def read32( self, addr ):
return unpack( '<L', self.mmap_[ addr : addr + 4 ] )[ 0 ]

def write32( self, addr, value ):
self.mmap_[ addr: addr + 4 ] = pack( '<L', value )

def scdRegTest( scd, offset, val1, count ):
scd.write32( offset, val1 )
val2 = scd.read32( offset )
if val1 != val2:
print( "FAIL: scd write 0x%08x but read back 0x%08x in iter %d" %
( val1, val2, count ) )
sys.exit( 17 )

def scdScrRegTest( scd ):
scrOffset = 0x0130
for i in range( 0, 3 ):
scdRegTest( scd, scrOffset, 0xdeadbeef, i )
scdRegTest( scd, scrOffset, 0xa5a5a5a5, i )
scdRegTest( scd, scrOffset, 0x00000000, i )

def reboot( scd ):
# reboot the system by writing to register 0x7000
print( "Rebooting" )
scd.write32( 0x7000, 0xDEAD )
print( "REBOOTED" )

def main():
busName = "/sys/bus/pci/devices/0000:04:00.0/resource0"

subprocess.call( [ 'modprobe', 'scd' ] )

scd = MmapResource( busName )

#
# verify that we can read/write scd scratch register
#
scdScrRegTest( scd )

# reboot the system
reboot( scd )

if __name__ == "__main__":
main()
10 changes: 0 additions & 10 deletions device/arista/x86_64-arista_7050_qx32/plugins/led_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ def __init__(self):
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):
Expand Down
87 changes: 87 additions & 0 deletions device/arista/x86_64-arista_7050_qx32s/platform_reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/usr/bin/env python
# Copyright (c) 2018 Arista Networks, Inc. All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.

# Reboot script for 7050QX-32S

from __future__ import print_function
import sys
import mmap, os
import subprocess
from struct import pack, unpack

class MmapResource( object ):
"""Resource implementation for a directly-mapped memory region."""

def __init__( self, path ):
try:
fd = os.open( path, os.O_RDWR )
except EnvironmentError:
print( "FAIL can not open scd memory-map resource file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
try:
size = os.fstat( fd ).st_size
except EnvironmentError:
print( "FAIL can not fstat scd memory-map resource file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
try:
self.mmap_ = mmap.mmap( fd, size, mmap.MAP_SHARED,
mmap.PROT_READ | mmap.PROT_WRITE )
except EnvironmentError:
print( "FAIL can not map scd memory-map file" )
print( "FAIL are you running on the proper platform?" )
sys.exit( 1 )
finally:
try:
# Note that closing the file descriptor has no effect on the memory map
os.close( fd )
except EnvironmentError:
print( "FAIL failed to close scd memory-map file" )
sys.exit( 1 )

def read32( self, addr ):
return unpack( '<L', self.mmap_[ addr : addr + 4 ] )[ 0 ]

def write32( self, addr, value ):
self.mmap_[ addr: addr + 4 ] = pack( '<L', value )

def scdRegTest( scd, offset, val1, count ):
scd.write32( offset, val1 )
val2 = scd.read32( offset )
if val1 != val2:
print( "FAIL: scd write 0x%08x but read back 0x%08x in iter %d" %
( val1, val2, count ) )
sys.exit( 17 )

def scdScrRegTest( scd ):
scrOffset = 0x0130
for i in range( 0, 3 ):
scdRegTest( scd, scrOffset, 0xdeadbeef, i )
scdRegTest( scd, scrOffset, 0xa5a5a5a5, i )
scdRegTest( scd, scrOffset, 0x00000000, i )

def reboot( scd ):
# reboot the system by writing to register 0x7000
print( "Rebooting" )
scd.write32( 0x7000, 0xDEAD )
print( "REBOOTED" )

def main():
busName = "/sys/bus/pci/devices/0000:02:00.0/resource0"

subprocess.call( [ 'modprobe', 'scd' ] )

scd = MmapResource( busName )

#
# verify that we can read/write scd scratch register
#
scdScrRegTest( scd )

# reboot the system
reboot( scd )

if __name__ == "__main__":
main()
11 changes: 0 additions & 11 deletions device/arista/x86_64-arista_7050_qx32s/plugins/led_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ def __init__(self):
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):
Expand Down
Loading