-
Notifications
You must be signed in to change notification settings - Fork 177
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
[sonic_platform_base] Add sonic_sfp and sonic_eeprom to sonic_platform_base #27
Conversation
merge from upstream master
merge from upstream
…bfolder under sonic_platform_base to avoid duplicate files
…e new subfolder under sonic_platform_base to avoid duplicate files" This reverts commit 3e741dd.
@jleveque could you review and approve this? thanks. |
…m_base (#27) * add sonic_sfp and sonic_eeprom to sonic_platform_base * make original sonic_sfp and sonic_eeprom as symbol link to the new subfolder under sonic_platform_base to avoid duplicate files * Revert "make original sonic_sfp and sonic_eeprom as symbol link to the new subfolder under sonic_platform_base to avoid duplicate files" This reverts commit 3e741dd.
# with mapping for future reference. | ||
# | ||
# TODO: Refactor this to use the portconfig.py module that now | ||
# exists as part of the sonic-config-engine package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice the TODO is quite reasonable, and there are lots of repeated port_config parser in code base. Can we start take the action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good time to to make the change, because there are open PRs to begin transitioning from the port_config.ini file to a new 'platform.json' file. The logic to do the parsing and also to fallback to the old port_config.ini is all in the portconfig.py module: sonic-net/sonic-buildimage#3909
[sonic_platform_base]: Add sonic_sfp and sonic_eeprom to sonic_platform_base
Add a copy of sonic_sfp and sonic_eeprom to sonic_platform_base
Add sonic_sfp and sonic_eeprom as submodules of sonic_platform_base
Make original sonic_sfp and sonic_eeprom as symbol link to the new subfolder under sonic_platform_base to avoid duplicate files.
Signed-off-by: Kebo Liu kebol@mellanox.com