Update for the procedures for insertion/hot swap of Switch Fabric Module (SFM) by using "config chassis modules shutdown/startup" commands#491
Merged
judyjoseph merged 2 commits intosonic-net:masterfrom May 29, 2024
Conversation
…ule(SFM) by using "config chassis modules shutdown/startup" commands
This was referenced May 29, 2024
Contributor
Author
Contributor
Author
|
@mlok-nokia , @judyjoseph , please review and approve it. Thanks. |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sonic-chassisd/scripts/chassisd python.lang.security.audit.subprocess-shell-true.subprocess-shell-true Found 'subprocess' function 'Popen' with 'shell=True'. This is dangerous because this call will spawn the command using a shell process. Doing so propagates current shell settings and variables, which makes it much easier for a malicious actor to execute commands. Use 'shell=False' instead. Details: https://sg.run/J92w
judyjoseph
approved these changes
May 29, 2024
lotus-nexthop
pushed a commit
to lotus-nexthop/sonic-platform-daemons
that referenced
this pull request
Oct 28, 2025
- Description Currently, is_flat_memory could return 3 different values: True when the module is flat memory False when the module is not flat memory None when the EEPROM read returns None or empty bytearray When it returns None, we should not assume that the module is NOT a flat memory. Instead, it would be safer to treat it as a flat memory. - Motivation and Context This PR is to make is_flat_memory only returns two state, True or False. And if EEPROM reading returns None or empty bytearray, we should treat the module as a flat memory. - How Has This Been Tested? Manual test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
For the Nokia SONiC chassis procedures for insertion/hot swap of Switch Fabric Module(SFM),
the previous solution was using the below commands.
The below 4 PRs intend to add the below commands for the equivalent operations.
#491
sonic-net/sonic-utilities#3283
nokia/sonic-platform#6
sonic-net/sonic-buildimage#18938
The HLD for Shutdown and Startup of the Fabric Module is below:
sonic-net/SONiC#1694
The below PR was replaced.
sonic-net/sonic-buildimage#18578
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)