Skip to content

Configurable address families for SR-MPLS#3111

Merged
ipspace merged 6 commits intodevfrom
sr-af
Feb 18, 2026
Merged

Configurable address families for SR-MPLS#3111
ipspace merged 6 commits intodevfrom
sr-af

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Feb 18, 2026

This commit enables selective use of SR-MPLS for a subset of lab address families. It also introduces explicit checks of device feature SR-MPLS AF support

This commit enables selective use of SR-MPLS for a subset of lab
address families. It also introduces explicit checks of device feature
SR-MPLS AF support
Copy link

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

Enables selective SR-MPLS activation per address family (AF) and adds device feature checks to prevent configuring SR-MPLS on unsupported AFs.

Changes:

  • Added sr.af (global + node) attribute schema and documented how to constrain SR-MPLS to IPv4/IPv6 subsets.
  • Implemented per-device SR-MPLS AF support validation during SR module transformation.
  • Updated device feature definitions to declare supported SR-MPLS AFs and added coverage tests for the new validation behavior.

Reviewed changes

Copilot reviewed 12 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/coverage/errors/sr-af.yml New negative test topology covering SR-MPLS AF support validation.
tests/coverage/errors/sr-af.log Expected error output for SR-MPLS AF support validation failures.
netsim/modules/sr.yml Adds sr.af attribute schema and declares af as an SR feature capability.
netsim/modules/sr.py Creates/uses sr.af and checks device feature support per AF before generating Node SIDs.
netsim/modules/init.py Guards module dependency requirement merging to only run on dict-like (Box) feature data.
netsim/devices/sros.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/srlinux.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/none.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/junos.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/iol.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/frr.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/eos.yml Declares SR-MPLS AF support via features.sr.af.
netsim/devices/csr.yml Declares SR-MPLS AF support via features.sr.af.
docs/module/sr-mpls.md Documents sr.af controls (global and per-node) for SR-MPLS AF selection.

* Add 'node_proto_af' function that calculates the default value of
  per-protocol 'af' dictionary for protocols that are not enabled on
  interfaces
Copy link

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

Copilot reviewed 13 out of 17 changed files in this pull request and generated 1 comment.

ipspace added a commit that referenced this pull request Feb 18, 2026
Copy link

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

Copilot reviewed 13 out of 17 changed files in this pull request and generated 3 comments.

ipspace and others added 2 commits February 18, 2026 10:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ipspace ipspace merged commit 5933538 into dev Feb 18, 2026
6 checks passed
@ipspace ipspace deleted the sr-af branch February 18, 2026 09:35
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.

1 participant

Comments