]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: authorise to select bgp self peer prefix on rr case
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 7 Nov 2022 10:56:37 +0000 (11:56 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 15 Nov 2022 08:49:38 +0000 (09:49 +0100)
commitf874552557cf2577ae91b297f422e307084f22d3
tree7f2901385b70b8ba4afd60b81840f194e6ed333a
parent2c7c09d94cfb840d443f35436214e03536ad45ab
bgpd: authorise to select bgp self peer prefix on rr case

This commit addresses an issue that happens when using bgp
peering with a rr client, with a received prefix which is the
local ip address of the bgp session.

When using bgp ipv4 unicast session, the local prefix is
received by a peer, and finds out that the proposed prefix
and its next-hop are the same. To avoid a route loop locally,
no nexthop entry is referenced for that prefix, and the route
will not be selected.

When the received peer is a route reflector, the prefix has
to be selected, even if the route can not be installed locally.

Fixes: ("fb8ae704615c") bgpd: prevent routes loop through itself
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c