]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix VRF leaking with 'no bgp network import-check'
authorLouis Scalbert <louis.scalbert@6wind.com>
Thu, 28 Apr 2022 15:01:35 +0000 (17:01 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 6 Feb 2024 10:29:46 +0000 (10:29 +0000)
commit78872311a0347b9d6953c965aa3dd9d412c812b9
tree2628f7f167dd22ede601a75a7699dfa0998f2ac2
parentda022905ca2c27318a7e7b34e753237943c82ab8
bgpd: fix VRF leaking with 'no bgp network import-check'

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 <louis.scalbert@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit 45bf46441a2e0b02650a1d162367c357b220c7b1)
bgpd/bgp_mplsvpn.c