Add sr0 interface for VPP.#24359
Merged
lguohan merged 4 commits intosonic-net:masterfrom Nov 14, 2025
Merged
Conversation
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This was referenced Oct 27, 2025
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for creating the sr0 interface required for SRv6 functionality in SONiC VPP deployments. The change enables sonic-mgmt tests for SRv6 to run with SONiC-VPP.
- Adds sr0 dummy interface creation for VPP ASIC type
- Implements interface existence check before creation
- Ensures sr0 interface is brought up for SRv6 operation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lguohan
reviewed
Nov 11, 2025
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azpw run Azure.sonic-buildimage |
Collaborator
|
/AzurePipelines 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). |
Contributor
Author
|
Hi @lguohan , please help merge |
lguohan
approved these changes
Nov 14, 2025
ashutosh-agrawal
pushed a commit
to AnantKishorSharma/sonic-buildimage
that referenced
this pull request
Nov 30, 2025
SONiC VPP has support for SRv6, but the sr0 interface is needed for it to work; added here in 202411: Azure/sonic-buildimage-msft#517. A commit to master has comments requesting it to be enabled per platform: sonic-net#24084. Adding this change so that for VPP it is enabled and can allow sonic-mgmt tests for srv6 to be run with Sonic-VPP.
wangxin
pushed a commit
to sonic-net/sonic-mgmt
that referenced
this pull request
Dec 2, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing.
FengPan-Frank
pushed a commit
to FengPan-Frank/sonic-buildimage
that referenced
this pull request
Dec 4, 2025
SONiC VPP has support for SRv6, but the sr0 interface is needed for it to work; added here in 202411: Azure/sonic-buildimage-msft#517. A commit to master has comments requesting it to be enabled per platform: sonic-net#24084. Adding this change so that for VPP it is enabled and can allow sonic-mgmt tests for srv6 to be run with Sonic-VPP. Signed-off-by: Feng Pan <fenpan@microsoft.com>
opcoder0
pushed a commit
to opcoder0/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
dcaugher
pushed a commit
to dcaugher/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Dan Caugherty <dcaugher@cisco.com>
nissampa
pushed a commit
to nissampa/sonic-mgmt_dpu_test
that referenced
this pull request
Dec 9, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Nishanth Sampath Kumar <nissampa@cisco.com>
selldinesh
pushed a commit
to selldinesh/sonic-mgmt
that referenced
this pull request
Dec 11, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: selldinesh <dinesh.sellappan@keysight.com>
echuawu
pushed a commit
to echuawu/sonic-mgmt
that referenced
this pull request
Dec 12, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing.
saravanan-nexthop
pushed a commit
to saravanan-nexthop/sonic-mgmt
that referenced
this pull request
Dec 15, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Saravanan <saravanan@nexthop.ai>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
xwjiang-ms
pushed a commit
to xwjiang-ms/sonic-buildimage
that referenced
this pull request
Dec 22, 2025
SONiC VPP has support for SRv6, but the sr0 interface is needed for it to work; added here in 202411: Azure/sonic-buildimage-msft#517. A commit to master has comments requesting it to be enabled per platform: sonic-net#24084. Adding this change so that for VPP it is enabled and can allow sonic-mgmt tests for srv6 to be run with Sonic-VPP. Signed-off-by: xiaweijiang <xiaweijiang@microsoft.com>
vrajeshe
pushed a commit
to Akshath-17/sonic-mgmt
that referenced
this pull request
Jan 4, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Venkata Gouri Rajesh Etla <vrajeshe@cisco.com>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Jan 13, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing.
yifan-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Jan 14, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: YiFan Wang <yifan@nexthop.ai>
PriyanshTratiya
pushed a commit
to PriyanshTratiya/sonic-mgmt
that referenced
this pull request
Jan 21, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Priyansh Tratiya <ptratiya@microsoft.com>
lakshmi-nexthop
pushed a commit
to lakshmi-nexthop/sonic-mgmt
that referenced
this pull request
Jan 28, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Lakshmi Yarramaneni <lakshmi@nexthop.ai>
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Jan 29, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing.
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Feb 2, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Yael Tzur <ytzur@nvidia.com>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Feb 6, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing.
rraghav-cisco
pushed a commit
to rraghav-cisco/sonic-mgmt
that referenced
this pull request
Feb 13, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.com>
anilal-amd
pushed a commit
to anilal-amd/anilal-forked-sonic-mgmt
that referenced
this pull request
Feb 19, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Mar 17, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing. Signed-off-by: Abhishek <abhishek@nexthop.ai>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Mar 27, 2026
Enabling srv6/test_srv6_static_config.py and srv6/test_srv6_dataplane.py test cases for SONiC-VPP on T1 and T1-lag. Dependent on sonic-net/sonic-buildimage#24359 and sonic-net/sonic-sairedis#1673 to pass. What is the motivation for this PR? SONiC VPP has some SRv6 features enabled, but currently no sonic-mgmt test cases are covering them. How did you do it? How did you verify/test it? Ran sonic-mgmt locally with the above two PRs applied to SONiC-VPP image and all cases are passing.
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
SONiC VPP has support for SRv6, but the sr0 interface is needed for it to work; added here in 202411: Azure/sonic-buildimage-msft#517. A commit to master has comments requesting it to be enabled per platform: #24084. Adding this change so that for VPP it is enabled and can allow sonic-mgmt tests for srv6 to be run with Sonic-VPP.
Work 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)