-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[smartswitch][YANG]Add yang model for DPU_PORT information #21439
Conversation
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Also, write test cases for DPU_PORT
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
src/sonic-yang-models/tests/yang_model_pytests/test_smart_switch.py
Outdated
Show resolved
Hide resolved
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@vvolam please fill the PR description Why I did it |
src/sonic-yang-models/tests/yang_model_pytests/test_smart_switch.py
Outdated
Show resolved
Hide resolved
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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)