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

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

@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
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