[smartswitch][YANG]Add yang model for DPU_PORT information#21439
Merged
qiluo-msft merged 6 commits intosonic-net:masterfrom Feb 5, 2025
Merged
[smartswitch][YANG]Add yang model for DPU_PORT information#21439qiluo-msft merged 6 commits intosonic-net:masterfrom
qiluo-msft merged 6 commits intosonic-net:masterfrom
Conversation
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wen587
reviewed
Jan 16, 2025
wen587
reviewed
Jan 16, 2025
ganglyu
reviewed
Jan 16, 2025
ganglyu
reviewed
Jan 16, 2025
Also, write test cases for DPU_PORT
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ganglyu
reviewed
Jan 22, 2025
src/sonic-yang-models/tests/yang_model_pytests/test_smart_switch.py
Outdated
Show resolved
Hide resolved
prsunny
reviewed
Jan 22, 2025
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
@vvolam please fill the PR description Why I did it |
Contributor
Author
ganglyu
reviewed
Feb 4, 2025
src/sonic-yang-models/tests/yang_model_pytests/test_smart_switch.py
Outdated
Show resolved
Hide resolved
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
prgeor
reviewed
Feb 4, 2025
prsunny
approved these changes
Feb 5, 2025
prgeor
approved these changes
Feb 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
Add yang model for the DPU_PORT container information as below:
DPU_PORT|<PORT_NAME>:
state: up|down ; admin state of DPU device
vip_ipv4: ipv4 ip ; from minigraph
vip_ipv6: ipv6 ip ; from minigraph
pa_ipv4: ipv4 pa ip ; from minigraph
pa_ipv6: ipv6 pa ip ; from minigraph
vdpu_id: id of vdpu ; from minigraph
gnmi_port: gnmi server port ;
Work item tracking
How I did it
Add new DPU_PORT container to the sonic-smart-switch.yang file.
How to verify it
Uploaded the new image file to the Smart Switch and confirmed that the YANG model has been updated with the new sonic-smart-switch.yang file.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Add yang model for the DPU_PORT information below:
DPU_PORT|<PORT_NAME>:
state: up|down ; admin state of DPU device
vip_ipv4: ipv4 ip ; from minigraph
vip_ipv6: ipv6 ip ; from minigraph
pa_ipv4: ipv4 pa ip ; from minigraph
pa_ipv6: ipv6 pa ip ; from minigraph
vdpu_id: id of vdpu ; from minigraph
gnmi_port: gnmi server port ;
Addresses #21141
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)