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

Platform APIs for SmartSwitch #454

Merged
merged 16 commits into from
Aug 20, 2024
Merged

Conversation

rameshraghupathy
Copy link
Contributor

Added new APIs and enhanced the required APIs in "module_base.py and chassis_base.py" to support SmartSwitch

Description

The ChassisBase class and ModuleBase class need to support new SmartSwitch platforms.

Motivation and Context

Some new API and some API enhancements are required to support SmartSwitch. This has been captured in the PMON HLD document. These changes are implementation based on those requirements.

How Has This Been Tested?

The corresponding platform APIs were implemented. The new CLI changes and chassisd changes invoke these APIs. UT was performed and demo was done.

Additional Information (Optional)

sonic_platform_base/chassis_base.py Show resolved Hide resolved
sonic_platform_base/chassis_base.py Outdated Show resolved Hide resolved
@oleksandrivantsiv
Copy link
Collaborator

LGTM. I have two small requests, but besides that, all is good.

sonic_platform_base/chassis_base.py Outdated Show resolved Hide resolved
sonic_platform_base/chassis_base.py Outdated Show resolved Hide resolved
sonic_platform_base/chassis_base.py Outdated Show resolved Hide resolved
sonic_platform_base/chassis_base.py Show resolved Hide resolved
sonic_platform_base/module_base.py Show resolved Hide resolved
sonic_platform_base/module_base.py Show resolved Hide resolved
sonic_platform_base/module_base.py Show resolved Hide resolved
sonic_platform_base/chassis_base.py Outdated Show resolved Hide resolved
sonic_platform_base/module_base.py Outdated Show resolved Hide resolved
sonic_platform_base/module_base.py Outdated Show resolved Hide resolved
def get_module_dpu_data_port(self, index):
"""
Retrieves the DPU data port NPU-DPU association represented for
the DPU index. Platforms that need to overwrite the hwsku.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to use platform.json or hwsku.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are going to use platform.json

Copy link
Contributor

@vvolam vvolam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Please close on Prince comments before merging. Thanks!

@prgeor prgeor merged commit e55eebf into sonic-net:master Aug 20, 2024
5 checks passed
@prgeor prgeor changed the title Added new APIs and enhanced the required APIs in "module_base.py and Platform APIs for SmartSwitch Aug 21, 2024
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
…onic-net#454)

* [warmboot] Retain TRANSCEIVER_INFO/STATUS tables on deinit

Signed-off-by: Stepan Blyschak <[email protected]>

* add UT

Signed-off-by: Stepan Blyschak <[email protected]>

* Update IT

Signed-off-by: Stepan Blyschak <[email protected]>

---------

Signed-off-by: Stepan Blyschak <[email protected]>
prgeor pushed a commit to sonic-net/SONiC that referenced this pull request Oct 28, 2024
* Smart Switch reboot high level design

This is initial draft

* Update HLD with modified APIs and images

* Minor update to test plan

* Minor changes based on discussion with the community

* Address review comments

* Minor correction to pci rescan information

* Update reboot mechanism of the DPU and pcie daemon changes

* Minor changes

* Minor changes

* Made a minor change to dup_id based on get_dpu_id() update in
sonic-net/sonic-platform-common#454

* Add some enhancements

* Minor change to new APIs

* Address review comments

* Address some review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants