Skip to content

SR Linux: Fix LDP configuration template#3414

Merged
ipspace merged 2 commits into
devfrom
srlinux-ldp
May 19, 2026
Merged

SR Linux: Fix LDP configuration template#3414
ipspace merged 2 commits into
devfrom
srlinux-ldp

Conversation

@ipspace
Copy link
Copy Markdown
Owner

@ipspace ipspace commented May 19, 2026

  • Use correct interface name syntax and enable LDP for IPv4 in the 'protocols/ldp/discovery' block (the major showstopper)
  • Merge LDP configuration blocks into a single block
  • Enable MPLS ICMP tunneling
  • Allocate more labels to the LDP pool and change its name to 'ldp'
  • Remove the template checks for device type (that's done in device quirks)

* Use correct interface name syntax and enable LDP for IPv4 in the
  'protocols/ldp/discovery' block (the major showstopper)
* Merge LDP configuration blocks into a single block
* Enable MPLS ICMP tunneling
* Allocate more labels to the LDP pool and change its name to 'ldp'
* Remove the template checks for device type (that's done in device
  quirks)
@ipspace ipspace requested a review from Copilot May 19, 2026 07:02
ipspace added a commit that referenced this pull request May 19, 2026
Copy link
Copy Markdown

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 fixes and refactors the SR Linux LDP MPLS configuration template to generate correct SR Linux JSON-RPC/YAML updates, including proper LDP discovery/interface handling and updated label-range/MPLS settings.

Changes:

  • Refactors SR Linux LDP config into a single consolidated update block and fixes LDP discovery interface rendering (including enabling IPv4 per interface).
  • Updates MPLS settings: enables ICMP tunneling, renames/expands the LDP label range pool, and aligns SR Linux update keys (value) and paths.
  • Removes in-template device-type gating, relying on SR Linux device quirks instead.

Reviewed changes

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

File Description
netsim/ansible/templates/mpls/srlinux.ldp.j2 Reworks SR Linux LDP updates (label pool, MPLS ICMP tunneling, consolidated LDP + discovery interface config).
netsim/ansible/templates/mpls/srlinux.j2 Adds the updates: wrapper for the SR Linux MPLS template and includes the LDP fragment conditionally.

Comment thread netsim/ansible/templates/mpls/srlinux.j2
@ipspace ipspace merged commit 938bbc6 into dev May 19, 2026
11 checks passed
@ipspace ipspace deleted the srlinux-ldp branch May 19, 2026 07:43
ipspace added a commit that referenced this pull request May 19, 2026
…3415)

As a safeguard against 'updates:' (or some such) lists generated by the
Jinja2 templates becoming "null", the 'default([])' filter used to set
the Ansible module parameters now converts falsy values into empty
lists

Based on a review comment in #3414
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.

2 participants