Skip to content

srv6: T6977: add srv6 encapsulation source-address#4961

Merged
c-po merged 1 commit intovyos:currentfrom
jvoss:srv6_encapsulation
Feb 18, 2026
Merged

srv6: T6977: add srv6 encapsulation source-address#4961
c-po merged 1 commit intovyos:currentfrom
jvoss:srv6_encapsulation

Conversation

@jvoss
Copy link
Contributor

@jvoss jvoss commented Jan 29, 2026

Change summary

Add configuration option for setting the source address of the outer encapsulation IPv6 header on SRv6 traffic:
https://docs.frrouting.org/en/latest/zebra.html#clicmd-source-address-X-X-X-X

protocols 
 segment-routing {
  srv6 {
    encapsulation {
      source-address "2001:db8::1"
    }
  }
 }
}

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test / Smoketest result

$ /usr/libexec/vyos/tests/smoke/cli/test_protocols_segment-routing.py
test_srv6 (__main__.TestProtocolsSegmentRouting.test_srv6) ... ok
test_srv6_encap_source_addr (__main__.TestProtocolsSegmentRouting.test_srv6_encap_source_addr) ... ok
test_srv6_sysctl (__main__.TestProtocolsSegmentRouting.test_srv6_sysctl) ... ok

----------------------------------------------------------------------
Ran 3 tests in 9.384s

OK

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@github-actions
Copy link

github-actions bot commented Jan 29, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@github-actions
Copy link

github-actions bot commented Jan 29, 2026

👍
No issues in PR Title / Commit Title

@jvoss
Copy link
Contributor Author

jvoss commented Jan 29, 2026

I have read the CLA Document and I hereby sign the CLA

vyosbot added a commit to vyos/vyos-cla-signatures that referenced this pull request Jan 29, 2026
@c-po c-po self-requested a review February 5, 2026 16:00
@c-po c-po added the bp/circinus Create automatic backport for circinus label Feb 5, 2026
Copy link
Member

@c-po c-po left a comment

Choose a reason for hiding this comment

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

PR review is currently paused. We try to advise with FRR team

@jvoss jvoss force-pushed the srv6_encapsulation branch from 33afe4d to f7b22b2 Compare February 7, 2026 21:03
@c-po c-po requested review from c-po, dmbaturin and hedrok February 15, 2026 12:15
@c-po c-po force-pushed the srv6_encapsulation branch from a8e18b6 to 32db496 Compare February 15, 2026 12:17
@c-po
Copy link
Member

c-po commented Feb 15, 2026

Squashed in the requested CLI help string from @dmbaturin and rebased to current/HEAD to get a good CI re-run.

@github-actions
Copy link

CI integration 👍 passed!

Details

CI logs

  • CLI Smoketests 👍 passed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • CLI Smoketests VPP 👍 passed
  • Config tests VPP 👍 passed
  • TPM tests 👍 passed

Copy link
Contributor

@hedrok hedrok left a comment

Choose a reason for hiding this comment

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

Approve: read code, launched smoke test, manually ran:

configure
set protocols segment-routing srv6 encapsulation source-address 3fff:aaa::1
set protocols segment-routing interface eth3
commit
# Checked that frr configuration has this source  address
delete protocols segment-routing
commit
# Checked that FRR configuration is cleaned

Copy link
Member

@sever-sever sever-sever left a comment

Choose a reason for hiding this comment

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

Add source-address for srv6

Copy link
Member

@c-po c-po left a comment

Choose a reason for hiding this comment

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

CLI extension looks good. All requested changes done. Manually tested by @hedrok

@c-po c-po merged commit c386550 into vyos:current Feb 18, 2026
19 checks passed
@vyosbot vyosbot added mirror-initiated This PR initiated for mirror sync workflow mirror-completed and removed mirror-initiated This PR initiated for mirror sync workflow labels Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bp/circinus Create automatic backport for circinus current mirror-completed

Development

Successfully merging this pull request may close these issues.

6 participants

Comments