8000 bgpd: Unset TOVPN_SID_EXPLICIT flag to ensure BGP can release SRv6 SIDs by cscarpitta · Pull Request #18969 · FRRouting/frr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bgpd: Unset TOVPN_SID_EXPLICIT flag to ensure BGP can release SRv6 SIDs #18969

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

Conversation

cscarpitta
Copy link
Contributor

When a BGP instance is about to be destroyed, we call delete_vrf_tovpn_sid_per_vrf() to release SRv6 SIDs.

This function checks that there are no BGP_VRF_TOVPN_SID_* flags set for this BGP instance. If there are, then it assumes that this BGP instance is still using SRv6, and returns early without releasing the SIDs.

This PR makes sure the BGP_VRF_TOVPN_SID_EXPLICIT flag is unset before calling delete_vrf_tovpn_sid_per_vrf(), so that the delete_vrf_tovpn_sid_per_vrf() can do its job and release the SIDs.

When a BGP instance is about to be destroyed, we call
delete_vrf_tovpn_sid_per_vrf() to release SRv6 SIDs.

This function checks that there are no BGP_VRF_TOVPN_SID_* flags set
for this BGP instance. If there are, then it assumes that this BGP
instance is still using SRv6, and returns early without releasing the
SIDs.

This commit makes sure the BGP_VRF_TOVPN_SID_EXPLICIT flag is unset
before calling delete_vrf_tovpn_sid_per_vrf(), so that the
delete_vrf_tovpn_sid_per_vrf() can do its job and release the SIDs.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
@ton31337
Copy link
Member
ton31337 commented Jun 7, 2025

@Mergifyio backport stable/10.3 stable/10.2 stable/10.1 stable/10.0

Copy link
mergify bot commented Jun 7, 2025

backport stable/10.3 stable/10.2 stable/10.1 stable/10.0

✅ Backports have been created

Copy link
Member
@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0