Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgp: T6189: L3VPN connectivity is broken after re-enabling VRF #3392

Merged
merged 2 commits into from
May 1, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented May 1, 2024

Change Summary

When adding and removing VRF instances on the fly it was noticed that the vni statement under the VRF instance in FRR vanishes. This was caused by a race condition which was previously designed to fix another bug. The weird design of a Python helper below the VRF tree to only generate the VNI configuration nodes is now gone and all is rendered in the proper place.

After e7bb658 ("vrf: T6189: render FRR L3VNI configuration when creating VRF instance") we need to ensure that the VRF L3VNI configuration is removed in FRR prior to removing the BGP VRF instance. The reason is where FRR only allows VRF BGP instance to be removed when there is NO VNI configured anymore.

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)

Component(s) name

Proposed changes

How to test

Smoketest result

image

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

c-po added 2 commits May 1, 2024 20:55
When adding and removing VRF instances on the fly it was noticed that the vni
statement under the VRF instance in FRR vanishes. This was caused by a race
condition which was previously designed to fix another bug.

The wierd design of a Python helper below the VRF tree to only generate the
VNI configuration nodes is now gone and all is rendered in the proper place.
After e7bb658 ("vrf: T6189: render FRR L3VNI configuration when creating VRF
instance") we need to ensure that the VRF L3VNI configuration is removed in FRR
prior to removing the BGP VRF instance.

The reason is [1] where FRR only allows VRF BGP instance to be removed when
there is NO VNI configured anymore.

1: https://github.com/FRRouting/frr/blob/064c3494527b9e84260410006768ed38e57e1de7/bgpd/bgp_vty.c#L1646-L1650
@c-po
Copy link
Member Author

c-po commented May 1, 2024

@Mergifyio backport sagitta

@c-po c-po merged commit 4387d09 into vyos:current May 1, 2024
8 of 9 checks passed
Copy link
Contributor

mergify bot commented May 1, 2024

backport sagitta

✅ Backports have been created

@c-po c-po deleted the bgp-evpn-T6189 branch May 1, 2024 19:27
dmbaturin added a commit that referenced this pull request May 2, 2024
bgp: T6189: L3VPN connectivity is broken after re-enabling VRF (backport #3392)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants