Skip to content

Add sr0 interface for VPP.#24359

Merged
lguohan merged 4 commits intosonic-net:masterfrom
dypet:add_sr0_for_vpp
Nov 14, 2025
Merged

Add sr0 interface for VPP.#24359
lguohan merged 4 commits intosonic-net:masterfrom
dypet:add_sr0_for_vpp

Conversation

@dypet
Copy link
Copy Markdown
Contributor

@dypet dypet commented Oct 27, 2025

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
  • Microsoft ADO (number only):

How I did it

How to verify it

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

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

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)

@dypet dypet requested a review from lguohan as a code owner October 27, 2025 21:29
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dypet
Copy link
Copy Markdown
Contributor Author

dypet commented Nov 10, 2025

Hi @lguohan, @BYGX-wcr, please help review.

Copy link
Copy Markdown
Contributor

@BYGX-wcr BYGX-wcr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dypet
Copy link
Copy Markdown
Contributor Author

dypet commented Nov 12, 2025

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dypet
Copy link
Copy Markdown
Contributor Author

dypet commented Nov 13, 2025

Hi @lguohan , please help merge

@lguohan lguohan merged commit 672b9c1 into sonic-net:master Nov 14, 2025
22 checks passed
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.
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.

5 participants