[Mellanox][Smartswitch] Platform API for Smartswtich#20944
[Mellanox][Smartswitch] Platform API for Smartswtich#20944kperumalbfn merged 14 commits intosonic-net:masterfrom
Conversation
| Returns: | ||
| An integer, the number of modules available on this chassis | ||
| """ | ||
| return DeviceDataManager.get_dpu_count() |
There was a problem hiding this comment.
This seems to be returning only DPUs?
There was a problem hiding this comment.
Yes, only the DPUs are represented as modules, the switch itself is not a module
|
Dependent on for mellanox build to pass #20943 |
|
@gpunathilell Please check the build errors. |
|
/azpw run |
|
/azpw run Azure.sonic-buildimage |
|
/azpw run |
|
/azpw run Azure.sonic-buildimage |
|
/AzurePipelines run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@kperumalbfn can we merge this? |
| logger.log_error(f"Failed to check midplane reachability for {self.get_name()}! {e}") | ||
| return False | ||
|
|
||
| def get_midplane_interface(self): |
There was a problem hiding this comment.
@gpunathilell Do we have any new sonic-mgmt tests?
There was a problem hiding this comment.
This is vendor API implementation for Smart Switch PMON: https://github.com/sonic-net/SONiC/blob/master/doc/smart-switch/pmon/smartswitch-pmon.md
The test for the feature will be contributed by Cisco, who is working on the feature implementation.
[Mellanox][Smartswitch] Platform API for Smartswtich
Should be merged after #20943
Why I did it
Introduction of
SmartSwitchChassis,DpuModuleclasses for APIs required for Smartswitch PMONmodule.py- Introduction ofDpuModulefor representing each DPU as a moduleplatform.py- InitializeSmartSwitchChassisbased on number of DPUs on platformchassis.py- Introduction ofSmartSwitchChassisfor representing each the smartswitch as a modular chassis with DPUS presentWork 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)