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

bgpd: fix VRF leaking with 'no bgp network import-check' #15233

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

louis-6wind
Copy link
Contributor

BGP static routes are defined using the network statement, e.g.:

router bgp XXX
address-family ipv4 unicast
network 192.168.0.0/24

When "no bgp network import-check" is set, it is impossible to
successfully import the static routes into the BGP VPN table. The prefix
is present in the table but is not marked as valid. This issue applies
regardless of whether or not routes are present in the router's RIB.

Always mark as valid the nexthops of BGP static routes when "no bgp
network import-check" is set.

(Extract patch from #12638 to facilitate the review)

BGP static routes are defined using the network statement, e.g.:

> router bgp XXX
>  address-family ipv4 unicast
>   network 192.168.0.0/24

When "no bgp network import-check" is set, it is impossible to
successfully import the static routes into the BGP VPN table. The prefix
is present in the table but is not marked as valid. This issue applies
regardless of whether or not routes are present in the router's RIB.

Always mark as valid the nexthops of BGP static routes when "no bgp
network import-check" is set.

Signed-off-by: Louis Scalbert <[email protected]>
Signed-off-by: Philippe Guibert <[email protected]>
Test vpnv4 route leaking with no import-check

Signed-off-by: Louis Scalbert <[email protected]>
@ton31337 ton31337 added this to the 10.0 milestone Jan 25, 2024
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

@ton31337 ton31337 merged commit d48b99a into FRRouting:master Jan 26, 2024
13 checks passed
@pguibert6WIND
Copy link
Member

https://github.com/Mergifyio backport stable/9.1

Copy link

mergify bot commented Feb 6, 2024

backport stable/9.1

✅ Backports have been created

donaldsharp added a commit that referenced this pull request Feb 6, 2024
bgpd: fix VRF leaking with 'no bgp network import-check' (backport #15233)
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.

3 participants