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

[yang][smartswitch] Add YANG model for MID_PLANE_BRIDGE and DPU tables. #17311

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

oleksandrivantsiv
Copy link
Collaborator

Why I did it

Add the YANG model according to Smart Switch IP address assignment HDL.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Implement new YANG model containers.

How to verify it

Run YANG model unit tests. The changes add new unit tests to cover new functionality.

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)

@liat-grozovik
Copy link
Collaborator

@yaqiangz could you please review following the changes?

Copy link
Contributor

@yaqiangz yaqiangz left a comment

Choose a reason for hiding this comment

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

LGTM

@yaqiangz
Copy link
Contributor

yaqiangz commented Dec 8, 2023

@ganglyu Could you help to review this PR?

}
}

leaf midplane_interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

midplane_interface value is the same as dpu_name, why do we still need this leaf?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

dpu_name is a key of the table and represents the name of the DPU.
midplane_interface is the attribute of the DPU and represents the name of the midplane (PCIe) interface.
Even though they share the same name (for convenience) they represent the different entities.

@ganglyu
Copy link
Contributor

ganglyu commented Dec 12, 2023

Would you please update src/sonic-yang-models/doc/Configuration.md?

@oleksandrivantsiv
Copy link
Collaborator Author

Would you please update src/sonic-yang-models/doc/Configuration.md?

@ganglyu done

@oleksandrivantsiv
Copy link
Collaborator Author

/azp run Azure.sonic-buildimage

Copy link

Commenter does not have sufficient privileges for PR 17311 in repo sonic-net/sonic-buildimage

@oleksandrivantsiv
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik liat-grozovik merged commit 885f162 into sonic-net:master Dec 20, 2023
19 checks passed
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.

6 participants