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

[Mellanox][Smartswitch] Platform API for Smartswtich #20944

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

gpunathilell
Copy link
Contributor

@gpunathilell gpunathilell commented Nov 27, 2024

Should be merged after #20943

Why I did it

Introduction of SmartSwitchChassis, DpuModule classes for APIs required for Smartswitch PMON

  • module.py - Introduction of DpuModule for representing each DPU as a module
  • platform.py - Initialize SmartSwitchChassis based on number of DPUs on platform
  • chassis.py - Introduction of SmartSwitchChassis for representing each the smartswitch as a modular chassis with DPUS present
Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

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)

Returns:
An integer, the number of modules available on this chassis
"""
return DeviceDataManager.get_dpu_count()
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be returning only DPUs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, only the DPUs are represented as modules, the switch itself is not a module

@gpunathilell
Copy link
Contributor Author

Dependent on for mellanox build to pass #20943

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.

3 participants