Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master from Azure/sonic-buildimage #6

Merged
merged 66 commits into from
Jan 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
f345935
[submodule]: Advance sonic-platform-common. (#3848)
nazariig Dec 5, 2019
8ab75e0
[isc-dhcp-relay] Patch to allow relay to discover interfaces even if …
jleveque Dec 7, 2019
90ddad4
[mellanox ]improve the method the type of sfp module is detected (#3846)
stephenxs Dec 7, 2019
d39f10b
Revert "[dhcp_relay] Add extra sleep before starting relay agent proc…
jleveque Dec 8, 2019
335514b
[swss-common] update submodule for sonic-swss-common (#3863)
dzhangalibaba Dec 10, 2019
fec8029
ZTP infrastructure changes to support DHCP discovery provisioning dat…
rajendra-dendukuri Dec 10, 2019
9b8c59f
[swss] update submodule for sonic-swss (#3864)
dzhangalibaba Dec 10, 2019
dd32227
[DellEMC]: utility to set onie modes from NOS (#3860)
srideepDell Dec 10, 2019
7ef57f9
[docker-sonic-mgmt]: Add docker-ce-cli to sonic-mgmt container (#3868)
msosyak Dec 11, 2019
979b0dd
[doc]: Added one extra sentence to give example for check out 201911 …
kannankvs Dec 11, 2019
3b0c51f
[sub module] Update sonic-platform-common pointer to pick up fix (#3859)
keboliu Dec 11, 2019
ef26ba0
[Mellanox]Update hw-mgmt to V7.0000.2308 (#3858)
stephenxs Dec 12, 2019
13eec88
Change the dpkg default behavior in slave, and docker-base, in order …
qiluo-msft Dec 13, 2019
f126258
[Juniper][QFX5210] Platform monitoring updates (#3899)
ciju-juniper Dec 13, 2019
86e23f9
[lldpd]: Ports few fixes from lldpd master (#3889)
pavel-shirshov Dec 13, 2019
fbcaaa4
[config engine] For l2 preset, use admin_status: up by default (#3902)
mykolaf Dec 13, 2019
e8f3bee
[broadcom]: fix KNET MTU setting with Linux Kernel > 4.10.0 (#3895)
ishidawataru Dec 13, 2019
eefa845
[hostcfgd] avoid in place editing config file contents (#3904)
yxieca Dec 14, 2019
80bb7fd
[process-reboot-cause]Address the issue: Incorrect reboot cause retur…
stephenxs Dec 14, 2019
3ab4b71
Corefile uploader service (#3887)
renukamanavalan Dec 16, 2019
1286e5e
[platform/cel]: Remove afulnx_64 (#3900)
Dec 16, 2019
9baf8f7
[swss service] flush fast-reboot enabled flag upon swss stopping (#3908)
yxieca Dec 16, 2019
2c6c6bb
[sonic-ztp]: Add Azure/sonic-ztp as a submodule to Azure/sonic-buildi…
rajendra-dendukuri Dec 16, 2019
9cb12e6
DellEMC: S52xx platforms optoe driver changes (#3865)
aravindmani-1 Dec 16, 2019
1e5d25b
[platform-celestica]: Update fancontrol service for Seastone-DX010 de…
Dec 16, 2019
4ba0ff2
[services] make snmp.timer work again and delay telemetry.service (#3…
stepanblyschak Dec 16, 2019
08ec4fc
[swss-common] update submodule for sonic-swss-common (#3916)
dzhangalibaba Dec 17, 2019
7ae3712
[Mellanox]: Update SAI submodule (#3883)
Dec 17, 2019
51b78b5
[mellanox]: Enhance pmon synchronization with hw-mgmt platform counte…
nazariig Dec 17, 2019
a4b107b
[Juniper][QFX5210] Skip starting 'ledd' (#3920)
cijurajan Dec 17, 2019
063deb9
[Marvell HwSKU] port configration updated with speed (#3919)
antony-rheneus Dec 17, 2019
4458efb
DellEMC: Add support for new platform z9332f -32x400G (#3845)
srideepDell Dec 17, 2019
9c4c36e
[broadom]: Upgrade broadcom SAI to 3.7.3.2
judyjoseph Dec 19, 2019
1e05a41
[device][accton]: Update for AS7326-56X complying the BCM SAI 3.5.3.1…
pollyhsu2git Dec 18, 2019
77d6362
[caclmgrd] Fix application of IPv6 service ACL rules (#3917)
jleveque Dec 19, 2019
b6ad09a
[syncd.sh] remove chipdown on mellanox (#3926)
stepanblyschak Dec 23, 2019
ed2d5f8
[broadcom]: respect the current network namespace when creating netde…
ishidawataru Dec 23, 2019
183c945
[slave.mk] use curl instead of wget (#3939)
stepanblyschak Dec 23, 2019
87f7010
SONiC Management Framework Release 1.0 (#3488)
PrabhuSreenivasan Dec 24, 2019
baea7e2
[slave.mk] make curl follow HTTP redirects (#3947)
stepanblyschak Dec 27, 2019
86ab2ae
[swsssdk-py] submodule update for sonic-py-swsssdk (#3929)
dzhangalibaba Dec 27, 2019
18cb5c6
[swss] submodule update (#3925)
stepanblyschak Dec 27, 2019
bd72844
[kvm]: increase the kvm installer size to 2G for dbg image
lguohan Dec 28, 2019
78db080
corefile uploader: Updates per review comments offline (#3915)
renukamanavalan Dec 30, 2019
08cde06
[Juniper][QFX5210] Adding qos.json (#3946)
ciju-juniper Dec 31, 2019
24a0c46
[monit] Build from source and patch to use MemAvailable value if avai…
jleveque Dec 31, 2019
ea11287
[Mellanox] Update FW/SDK: 13/29.2000.2696 and 4.3.2904 (#3948)
noaOrMlnx Dec 31, 2019
476be91
[docker-base-stretch]: Do not check expire for stretch-backports repo…
lguohan Jan 1, 2020
0dae59a
[MultiDB]except src and dockers : replace redis-cli with sonic-db-cli…
dzhangalibaba Jan 2, 2020
1221246
Update bgpcfgd with vrf support (#3952)
pavel-shirshov Jan 4, 2020
df04809
[libnl]: Debian Packaging libnl version 3.5.0 (#3967)
tahmed-dev Jan 7, 2020
04b9113
[Mellanox]Update the hw-mgmt patch for simx on V.7.0000.2308 (#3957)
stephenxs Jan 7, 2020
3548587
[apt] Instruct apt-get to NOT check the "Valid Until" date in Release…
jleveque Jan 7, 2020
2658ab8
[dhcp-relay]: Add DHCP Relay Monitor (#3886)
tahmed-dev Jan 8, 2020
68499e6
[sonic-mgmt]: Install python-subnettree to sonic-mgmt container. (#3978)
iris00522 Jan 8, 2020
c475519
Fix bug: chroot command line (#3972)
qiluo-msft Jan 8, 2020
483a594
Revert "[MultiDB]except src and dockers : replace redis-cli with soni…
lguohan Jan 10, 2020
856b4b6
[reboot cause]: Delay process-reboot-cause service until network conn…
sujinmkang Jan 10, 2020
bac6615
[device/celestica]: Fix xcvrd error (#3979)
Jan 10, 2020
e45ff4e
[build] make debian package install noninteractive (#3980)
stepanblyschak Jan 10, 2020
f3b5b13
[barefoot]: Update SDK package (#3950)
akokhan Jan 10, 2020
aa67921
[Monit] Change the monitoring period from 120 seconds to 60 seconds. …
yozhao101 Jan 10, 2020
6dcc08e
[psud]: Fix for psud crash because of database connection reset (#3647)
Kalimuthu-Velappan Jan 10, 2020
3b1ee5d
Changes to build restapi docker (#3993)
sumukhatv Jan 10, 2020
b7e48b4
[Services] Allow monit system tool to monitor the critical processes …
yozhao101 Jan 11, 2020
952dfb1
[docker-sonic-mgmt]: fix installation permission issue
lguohan Jan 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ target/
# Subdirectories in src
src/bash/*
!src/bash/Makefile
src/dhcpmon/debian/*
!src/dhcpmon/debian/changelog
!src/dhcpmon/debian/compat
!src/dhcpmon/debian/control
!src/dhcpmon/debian/rules
src/ixgbe/*
!src/ixgbe/Makefile
src/isc-dhcp/*
Expand Down Expand Up @@ -50,6 +55,8 @@ src/isc-dhcp/*
!src/isc-dhcp/Makefile
!src/isc-dhcp/patch/
src/libnl3/*
!src/libnl3/debian
src/libnl3/debian/libnl-*/
!src/libnl3/Makefile
src/libteam/*
!src/libteam/Makefile
Expand All @@ -60,6 +67,9 @@ src/lldpd/*
!src/lldpd/patch/
src/lm-sensors/*
!src/lm-sensors/Makefile
src/monit/*
!src/monit/Makefile
!src/monit/patch/
src/mpdecimal/*
!src/mpdecimal/Makefile
src/python-click/*
Expand Down Expand Up @@ -101,6 +111,7 @@ src/thrift/*
# Autogenerated Dockerfiles
sonic-slave/Dockerfile
sonic-slave-stretch/Dockerfile
sonic-slave-jessie/Dockerfile
dockers/docker-base/Dockerfile
dockers/docker-base-stretch/Dockerfile
dockers/docker-config-engine/Dockerfile
Expand Down Expand Up @@ -137,3 +148,17 @@ src/sonic-daemon-base/sonic_daemon_base.egg-info
# Misc. files
files/initramfs-tools/arista-convertfs
files/initramfs-tools/union-mount

# Debian byproduct files
src/**/debian/stamp-*/
src/**/debian/*.log
src/**/debian/*.substvars
src/**/debian/.debhelper/
src/**/debian/tmp/
src/**/debian/autoreconf.*
src/**/debian/build/
src/**/debian/files
src/**/debian/stamp-autotools-files

# .o files
src/**/*.o
13 changes: 13 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@
[submodule "platform/mellanox/mlnx-sai/SAI-Implementation"]
path = platform/mellanox/mlnx-sai/SAI-Implementation
url = https://github.com/Mellanox/SAI-Implementation
[submodule "src/sonic-mgmt-framework"]
path = src/sonic-mgmt-framework
url = https://github.com/Azure/sonic-mgmt-framework
[submodule "src/sonic-telemetry"]
path = src/sonic-telemetry
url = https://github.com/Azure/sonic-telemetry
[submodule "Switch-SDK-drivers"]
path = platform/mellanox/sdk-src/sx-kernel/Switch-SDK-drivers
url = https://github.com/Mellanox/Switch-SDK-drivers
[submodule "src/sonic-ztp"]
path = src/sonic-ztp
url = https://github.com/Azure/sonic-ztp
[submodule "src/sonic-restapi"]
path = src/sonic-restapi
url = https://github.com/Azure/sonic-restapi.git
branch = master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To build SONiC installer image and docker images, run the following commands:
# Enter the source directory
cd sonic-buildimage

# (Optional) Checkout a specific branch. By default, it uses master branch
# (Optional) Checkout a specific branch. By default, it uses master branch. For example, to checkout the branch 201911, use "git checkout 201911"
git checkout [branch_name]

# Execute make init once after cloning the repo, or after fetching remote repo with submodule updates
Expand Down
15 changes: 5 additions & 10 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sudo LANG=C chroot $FILESYSTEM_ROOT mount proc /proc -t proc

## Pointing apt to public apt mirrors and getting latest packages, needed for latest security updates
sudo cp files/apt/sources.list.$CONFIGURED_ARCH $FILESYSTEM_ROOT/etc/apt/sources.list
sudo cp files/apt/apt.conf.d/{81norecommends,apt-{clean,gzip-indexes,no-languages}} $FILESYSTEM_ROOT/etc/apt/apt.conf.d/
sudo cp files/apt/apt.conf.d/{81norecommends,apt-{clean,gzip-indexes,no-languages},no-check-valid-until} $FILESYSTEM_ROOT/etc/apt/apt.conf.d/
sudo LANG=C chroot $FILESYSTEM_ROOT bash -c 'apt-mark auto `apt-mark showmanual`'

## Note: set lang to prevent locale warnings in your chroot
Expand Down Expand Up @@ -240,7 +240,6 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
openssh-server \
python \
python-setuptools \
monit \
python-apt \
traceroute \
iputils-ping \
Expand Down Expand Up @@ -348,10 +347,6 @@ EOF
sudo sed -i 's/^ListenAddress ::/#ListenAddress ::/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
sudo sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' $FILESYSTEM_ROOT/etc/ssh/sshd_config

## Config monit
sudo cp files/image_config/monit/monitrc $FILESYSTEM_ROOT/etc/monit/
sudo chmod 600 $FILESYSTEM_ROOT/etc/monit/monitrc

## Config sysctl
sudo mkdir -p $FILESYSTEM_ROOT/var/core
sudo augtool --autosave "
Expand Down Expand Up @@ -392,14 +387,14 @@ set /files/etc/sysctl.conf/net.ipv6.conf.default.keep_addr_on_down 1
set /files/etc/sysctl.conf/net.ipv6.conf.all.keep_addr_on_down 1
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.keep_addr_on_down 1

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

set /files/etc/sysctl.conf/net.ipv4.tcp_l3mdev_accept 1
set /files/etc/sysctl.conf/net.ipv4.udp_l3mdev_accept 1

set /files/etc/sysctl.conf/net.core.rmem_max 2097152
set /files/etc/sysctl.conf/net.core.wmem_max 2097152

set /files/etc/sysctl.conf/net.core.somaxconn 512

" -r $FILESYSTEM_ROOT

if [[ $CONFIGURED_ARCH == amd64 ]]; then
Expand Down Expand Up @@ -429,10 +424,10 @@ EOF

sudo cp files/dhcp/rfc3442-classless-routes $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d
sudo cp files/dhcp/sethostname $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/
sudo cp files/dhcp/sethostname6 $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/
sudo cp files/dhcp/graphserviceurl $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/
sudo cp files/dhcp/snmpcommunity $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/
sudo cp files/dhcp/vrf $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/
sudo cp files/dhcp/dhclient.conf $FILESYSTEM_ROOT/etc/dhcp/
if [ -f files/image_config/ntp/ntp ]; then
sudo cp ./files/image_config/ntp/ntp $FILESYSTEM_ROOT/etc/init.d/
fi
Expand Down
2 changes: 1 addition & 1 deletion device/accton/x86_64-accton_as7326_56x-r0/Accton-AS7326-56X/sai.profile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/td3-as7326-48x25G+8x100G.config.bcm
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td3-as7326-48x25G+8x100G.config.bcm
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ l2xmsg_mode=1
bcm_num_cos=8
bcm_stat_interval=2000000
cdma_timeout_usec=3000000
ifp_inports_support_enable=1
ipv6_lpm_128b_enable=0x1
l3_max_ecmp_mode=1
l3_alpm_enable=2
lpm_scaling_enable=0
max_vp_lags=0
miim_intr_enable=0
module_64ports=1
port_flex_enable=1
schan_intr_enable=0
stable_size=0x5500000
tdma_timeout_usec=3000000
skip_L2_USER_ENTRY=0
bcm_tunnel_term_compatible_mode=1
l3_alpm_ipv6_128b_bkt_rsvd=1

dport_map_port_1=6
dport_map_port_2=2
Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions device/accton/x86_64-accton_as7326_56x-r0/led_proc_init.soc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#led auto off
#led stop
m0 load 0 0x0 /usr/share/sonic/platform/linkscan_led_fw.bin
m0 load 0 0x3800 /usr/share/sonic/platform/custom_led.bin
led auto on
led start
Binary file not shown.
3 changes: 3 additions & 0 deletions device/celestica/x86_64-cel_e1031-r0/pmon_daemon_control.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"skip_ledd": true
}
19 changes: 16 additions & 3 deletions device/celestica/x86_64-cel_e1031-r0/sonic_platform/chassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from sonic_platform.fan import Fan
from sonic_platform.psu import Psu
from sonic_platform.component import Component
from sonic_platform.watchdog import Watchdog
from sonic_platform.thermal import Thermal
from sonic_platform.sfp import Sfp
from sonic_platform.eeprom import Tlv
Expand Down Expand Up @@ -54,7 +53,9 @@ def __init__(self):
for index in range(0, NUM_THERMAL):
thermal = Thermal(index)
self._thermal_list.append(thermal)
for index in range(0, NUM_SFP):
# sfp index start from 1
self._sfp_list.append(None)
for index in range(1, NUM_SFP+1):
sfp = Sfp(index)
self._sfp_list.append(sfp)
for index in range(0, NUM_COMPONENT):
Expand All @@ -63,7 +64,6 @@ def __init__(self):
self._reboot_cause_path = HOST_REBOOT_CAUSE_PATH if self.__is_host(
) else PMON_REBOOT_CAUSE_PATH

self._watchdog = Watchdog()
self._eeprom = Tlv()

def __is_host(self):
Expand Down Expand Up @@ -134,3 +134,16 @@ def get_reboot_cause(self):
description = 'Unknown reason'

return (reboot_cause, description)

def get_watchdog(self):
"""
Retreives hardware watchdog device on this chassis
Returns:
An object derived from WatchdogBase representing the hardware
watchdog device
"""
if self._watchdog is None:
from sonic_platform.watchdog import Watchdog
self._watchdog = Watchdog()

return self._watchdog
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def install_firmware(self, image_path):
new_image_path = os.path.join("/tmp", (root.lower() + ext))
shutil.copy(image_path, new_image_path)
install_command = "ispvm %s" % new_image_path
elif self.name == "BIOS":
install_command = "afulnx_64 %s /p /b /n /x /r" % image_path
# elif self.name == "BIOS":
# install_command = "afulnx_64 %s /p /b /n /x /r" % image_path

return self.__run_command(install_command)
2 changes: 1 addition & 1 deletion device/celestica/x86_64-cel_e1031-r0/sonic_platform/sfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Sfp(SfpBase):
def __init__(self, sfp_index):
# Init index
self.index = sfp_index
self.port_num = self.index + 1
self.port_num = self.index

# Init eeprom path
eeprom_path = '/sys/bus/i2c/devices/i2c-{0}/{0}-0050/eeprom'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"skip_ledd": true
}
12 changes: 0 additions & 12 deletions device/celestica/x86_64-cel_seastone-r0/fancontrol

This file was deleted.

11 changes: 11 additions & 0 deletions device/celestica/x86_64-cel_seastone-r0/fancontrol-B2F
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=2
FCTEMPS=13-002e/pwm1=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-002e/pwm2=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-002e/pwm3=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-002e/pwm4=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-002e/pwm5=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-004d/pwm1=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-004d/pwm2=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-004d/pwm3=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-004d/pwm4=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input 13-004d/pwm5=/sys/bus/i2c/devices/15-004e/hwmon/hwmon*/temp1_input
FCFANS=13-004d/pwm5=13-004d/fan5_input 13-004d/pwm4=13-004d/fan4_input 13-004d/pwm3=13-004d/fan3_input 13-004d/pwm2=13-004d/fan2_input 13-004d/pwm1=13-004d/fan1_input 13-002e/pwm5=13-002e/fan5_input 13-002e/pwm4=13-002e/fan4_input 13-002e/pwm3=13-002e/fan3_input 13-002e/pwm2=13-002e/fan2_input 13-002e/pwm1=13-002e/fan1_input
MINTEMP=13-002e/pwm1=27 13-002e/pwm2=27 13-002e/pwm3=27 13-002e/pwm4=27 13-002e/pwm5=27 13-004d/pwm1=27 13-004d/pwm2=27 13-004d/pwm3=27 13-004d/pwm4=27 13-004d/pwm5=27
MAXTEMP=13-002e/pwm1=46 13-002e/pwm2=46 13-002e/pwm3=46 13-002e/pwm4=46 13-002e/pwm5=46 13-004d/pwm1=46 13-004d/pwm2=46 13-004d/pwm3=46 13-004d/pwm4=46 13-004d/pwm5=46
MINSTART=13-002e/pwm1=89 13-002e/pwm2=89 13-002e/pwm3=89 13-002e/pwm4=89 13-002e/pwm5=89 13-004d/pwm1=89 13-004d/pwm2=89 13-004d/pwm3=89 13-004d/pwm4=89 13-004d/pwm5=89
MINSTOP=13-002e/pwm1=89 13-002e/pwm2=89 13-002e/pwm3=89 13-002e/pwm4=89 13-002e/pwm5=89 13-004d/pwm1=89 13-004d/pwm2=89 13-004d/pwm3=89 13-004d/pwm4=89 13-004d/pwm5=89
MINPWM=13-002e/pwm1=89 13-002e/pwm2=89 13-002e/pwm3=89 13-002e/pwm4=89 13-002e/pwm5=89 13-004d/pwm1=89 13-004d/pwm2=89 13-004d/pwm3=89 13-004d/pwm4=89 13-004d/pwm5=89
MAXPWM=13-002e/pwm1=255 13-002e/pwm2=255 13-002e/pwm3=255 13-002e/pwm4=255 13-002e/pwm5=255 13-004d/pwm1=255 13-004d/pwm2=255 13-004d/pwm3=255 13-004d/pwm4=255 13-004d/pwm5=255
THYST=13-002e/pwm1=3 13-002e/pwm2=3 13-002e/pwm3=3 13-002e/pwm4=3 13-002e/pwm5=3 13-004d/pwm1=3 13-004d/pwm2=3 13-004d/pwm3=3 13-004d/pwm4=3 13-004d/pwm5=3
12 changes: 12 additions & 0 deletions device/celestica/x86_64-cel_seastone-r0/fancontrol-F2B
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=2
FCTEMPS=13-002e/pwm1=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-002e/pwm2=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-002e/pwm3=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-002e/pwm4=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-002e/pwm5=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-004d/pwm1=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-004d/pwm2=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-004d/pwm3=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-004d/pwm4=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input 13-004d/pwm5=/sys/bus/i2c/devices/5-0048/hwmon/hwmon*/temp1_input
FCFANS=13-004d/pwm5=13-004d/fan5_input 13-004d/pwm4=13-004d/fan4_input 13-004d/pwm3=13-004d/fan3_input 13-004d/pwm2=13-004d/fan2_input 13-004d/pwm1=13-004d/fan1_input 13-002e/pwm5=13-002e/fan5_input 13-002e/pwm4=13-002e/fan4_input 13-002e/pwm3=13-002e/fan3_input 13-002e/pwm2=13-002e/fan2_input 13-002e/pwm1=13-002e/fan1_input
MINTEMP=13-002e/pwm1=26 13-002e/pwm2=26 13-002e/pwm3=26 13-002e/pwm4=26 13-002e/pwm5=26 13-004d/pwm1=26 13-004d/pwm2=26 13-004d/pwm3=26 13-004d/pwm4=26 13-004d/pwm5=26
MAXTEMP=13-002e/pwm1=45 13-002e/pwm2=45 13-002e/pwm3=45 13-002e/pwm4=45 13-002e/pwm5=45 13-004d/pwm1=45 13-004d/pwm2=45 13-004d/pwm3=45 13-004d/pwm4=45 13-004d/pwm5=45
MINSTART=13-002e/pwm1=89 13-002e/pwm2=89 13-002e/pwm3=89 13-002e/pwm4=89 13-002e/pwm5=89 13-004d/pwm1=89 13-004d/pwm2=89 13-004d/pwm3=89 13-004d/pwm4=89 13-004d/pwm5=89
MINSTOP=13-002e/pwm1=89 13-002e/pwm2=89 13-002e/pwm3=89 13-002e/pwm4=89 13-002e/pwm5=89 13-004d/pwm1=89 13-004d/pwm2=89 13-004d/pwm3=89 13-004d/pwm4=89 13-004d/pwm5=89
MINPWM=13-002e/pwm1=89 13-002e/pwm2=89 13-002e/pwm3=89 13-002e/pwm4=89 13-002e/pwm5=89 13-004d/pwm1=89 13-004d/pwm2=89 13-004d/pwm3=89 13-004d/pwm4=89 13-004d/pwm5=89
MAXPWM=13-002e/pwm1=255 13-002e/pwm2=255 13-002e/pwm3=255 13-002e/pwm4=255 13-002e/pwm5=255 13-004d/pwm1=255 13-004d/pwm2=255 13-004d/pwm3=255 13-004d/pwm4=255 13-004d/pwm5=255
THYST=13-002e/pwm1=3 13-002e/pwm2=3 13-002e/pwm3=3 13-002e/pwm4=3 13-002e/pwm5=3 13-004d/pwm1=3 13-004d/pwm2=3 13-004d/pwm3=3 13-004d/pwm4=3 13-004d/pwm5=3

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"skip_ledd": true
}
19 changes: 16 additions & 3 deletions device/celestica/x86_64-cel_seastone-r0/sonic_platform/chassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from sonic_platform.fan import Fan
from sonic_platform.psu import Psu
from sonic_platform.component import Component
from sonic_platform.watchdog import Watchdog
from sonic_platform.thermal import Thermal
from sonic_platform.sfp import Sfp
from sonic_platform.eeprom import Tlv
Expand Down Expand Up @@ -56,14 +55,15 @@ def __init__(self):
for index in range(0, NUM_THERMAL):
thermal = Thermal(index)
self._thermal_list.append(thermal)
for index in range(0, NUM_SFP):
# sfp index start from 1
self._sfp_list.append(None)
for index in range(1, NUM_SFP+1):
sfp = Sfp(index)
self._sfp_list.append(sfp)
for index in range(0, NUM_COMPONENT):
component = Component(index)
self._component_list.append(component)

self._watchdog = Watchdog()
self._eeprom = Tlv()

def __is_host(self):
Expand Down Expand Up @@ -146,3 +146,16 @@ def get_reboot_cause(self):
description = 'Unknown reason'

return (reboot_cause, description)

def get_watchdog(self):
"""
Retreives hardware watchdog device on this chassis
Returns:
An object derived from WatchdogBase representing the hardware
watchdog device
"""
if self._watchdog is None:
from sonic_platform.watchdog import Watchdog
self._watchdog = Watchdog()

return self._watchdog
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def install_firmware(self, image_path):
new_image_path = os.path.join("/tmp", (root.lower() + ext))
shutil.copy(image_path, new_image_path)
install_command = "ispvm %s" % new_image_path
elif self.name == "BIOS":
install_command = "afulnx_64 %s /p /b /n /x /r" % image_path
# elif self.name == "BIOS":
# install_command = "afulnx_64 %s /p /b /n /x /r" % image_path

return self.__run_command(install_command)
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Sfp(SfpBase):
def __init__(self, sfp_index):
# Init index
self.index = sfp_index
self.port_num = self.index + 1 if self.PORT_START == 1 else index
self.port_num = self.index

# Init eeprom path
eeprom_path = '/sys/bus/i2c/devices/i2c-{0}/{0}-0050/eeprom'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"skip_ledd": true
}
Loading