8000 bgpd: fix for the validity and the presence of prefixes in the BGP VPN table. (backport #17370) by mergify[bot] · Pull Request #18957 · FRRouting/frr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bgpd: fix for the validity and the presence of prefixes in the BGP VPN table. (backport #17370) #18957

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

Merged
merged 8 commits into from
Jun 5, 2025

Conversation

mergify[bot]
Copy link
@mergify mergify bot commented Jun 5, 2025

Fix for the validity and the presence of prefixes in the BGP VPN table.

See individial commit logs


This is an automatic backport of pull request #17370 done by Mergify.

They are the same value.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 3430526)
Mark a nexthop as invalid if the origin VRF is unusable, either because
it does not exist or its interface is down.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 779077b)
When leak_update() rechecks an existing path, it considers nothing to
update if the attributes and labels are not changed. However, it does
not take into account the nexthop validity.

Perform a leak update if the nexthop validity has changed.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit bb986e9)
Do not leak if origin vrf is not usable

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 58a260a)
Update route_leak_basic tests. The routes with an unusable nexthop VRF
are no more present in the RIB.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 5a0f1dd)
The bgp_bmp test is failing because r2 lacks the vrf1 VRF, which
prevents it from exporting VPN prefixes from the configured vrf1 BGP
instance. Previous versions allowed the export of static BGP prefixes
from a non-existent VRF, so the test passed under those conditions.

Add a vrf1 VRF on r2.

Fixes: d748544 ("topotests: add basic bgp bmp test")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 5b22c79)
Check bgp vpn table in bgp_vpnv4_route_leak_basic

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 1e826d5)
In bgp_vpnv4_route_leak_basic, remove and add back the static prefix
172.16.3.0/24 on VRF DONNA. Before the previous fixes, the 172.16.3.0/24
prefix re-appeared when it was added back in the VPN table but it was
marked as invalid.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit fcae7a4)
@frrbot frrbot bot added bgp bugfix tests Topotests, make check, etc labels Jun 5, 2025
@Jafaral Jafaral merged commit c28491c into stable/10.3 Jun 5, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0