Skip to content

Comments

Fix IOL: Exit from BGP VRF configuration#3097

Merged
ipspace merged 3 commits intodevfrom
iol-vrf
Feb 11, 2026
Merged

Fix IOL: Exit from BGP VRF configuration#3097
ipspace merged 3 commits intodevfrom
iol-vrf

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Feb 10, 2026

The BGP VRF configuration needs an explicit 'exit' when used with startup config due to 'segment-routing srv6' command being valid within VRF- and within global context.

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

This PR fixes an issue with IOL (IOS on Linux) BGP VRF configuration by adding explicit exit commands to properly terminate configuration contexts. The issue arises because the 'segment-routing srv6' command is valid in both VRF and global contexts, making explicit context termination necessary for startup configurations.

Changes:

  • Added explicit exit commands in BGP VRF address-family and router bgp contexts
  • Modified Jinja2 template syntax to strip trailing whitespace after includes
  • Added comment separators (!) to improve configuration readability

Reviewed changes

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

File Description
netsim/ansible/templates/vrf/ios.j2 Added +%} to strip whitespace after BGP template inclusion and added comment separator after BGP and OSPF configuration blocks
netsim/ansible/templates/vrf/ios.bgp.j2 Added exit commands to terminate address-family context (within neighbor loop) and router bgp context, plus final comment separator

The BGP VRF configuration needs an explicit 'exit' when used with
startup config due to 'segment-routing srv6' command being valid within
VRF- and within global context.
@ipspace ipspace merged commit c35aba8 into dev Feb 11, 2026
@ipspace ipspace deleted the iol-vrf branch February 11, 2026 07:48
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