-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Celestica Seastone2] Build correct platform files #9660
Conversation
Signed-off-by: Viktor Ekmark <viktor@ekmark.se>
Signed-off-by: Christian Svensson <blue@cmd.nu>
Earlier logic resulted in the name of SFP1 being SFP33 which is not correct. The cannonical source is seastone2_fpga module and it calls it SFP1, so ensure the logic does as well. Signed-off-by: Christian Svensson <blue@cmd.nu>
Various changes that plumbs the correct port presence and DOM decoding for the SFP1 port. Signed-off-by: Christian Svensson <blue@cmd.nu>
After fixing the platform files we found some xcvrd issues related to adding SFP1 port in #8267 and we have included those patches in this PR as well |
Please NOTE SONiC has moved to using Sfp refactored code which is mostly platform independent code. Its advised to move your platform to start using sonic_xcvr https://github.com/Azure/sonic-platform-common/tree/master/sonic_platform_base/sonic_xcvr Ref: SFP refactoring HLD. SFP refactoring HLD Example Dell platform moved to using SFP refactored code : - #9016 |
@prgeor Got it - that might be a thing we have to defer to Celestica for, we only use the platform. The refactor does look very nice though, so hopefully they will adopt it. As for backporting - could you add the relevant "Request for XYZ branch" labels? Or do we need somebody else to do that? Thanks! |
* fix workdir for seastone2 Signed-off-by: Viktor Ekmark <viktor@ekmark.se> * seastone2: Add I2C SFP definition for SFP1 Signed-off-by: Christian Svensson <blue@cmd.nu> * [device/cel_seastone_2] sfputil logic for SFP1 Earlier logic resulted in the name of SFP1 being SFP33 which is not correct. The cannonical source is seastone2_fpga module and it calls it SFP1, so ensure the logic does as well. Signed-off-by: Christian Svensson <blue@cmd.nu> * [device/cel_seastone_2] sysfs paths for SFP1 Various changes that plumbs the correct port presence and DOM decoding for the SFP1 port. Signed-off-by: Christian Svensson <blue@cmd.nu> Co-authored-by: Christian Svensson <blue@cmd.nu>
@prgeor Sorry to annoy, but could you add "Request for 202012 branch" as well? Thanks! |
Why I did it
I noticed
show interfaces transceiver presence
was not showing correct state for our inserted transceiversHow I did it
Redis database was missing
TRANSCEIVER_INFO
keys and found out that xcvrd process was crashing:After some investigation I figured out that the platform file
/usr/local/lib/python2.7/dist-packages/sonic_platform/sfp.py
was not intended for seastone2 but for silverstone. The build process was working in the relative directory for silverstone instead of seastone2.How to verify it
Check logs for xcvrd and verify that it's not crashing anymore
Which release branch to backport (provide reason below if selected)
Backport to earlier releases as this is a bug fix for critical hardware monitoring
Description for the changelog
[Celestica Seastone2] Build correct platform files
A picture of a cute animal (not mandatory but encouraged)