]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: best path calculation uses peer from imported prefixes
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 10 Jan 2023 08:59:14 +0000 (09:59 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Sun, 26 Feb 2023 08:44:16 +0000 (09:44 +0100)
commitcefda028bb4c01f9680f1fec6a16138a68dfee99
tree0a06a973f686ee8d9360aca6717afa471388c417
parentbed7867117fe77d59d974d16b44b94a1542cf429
bgpd: best path calculation uses peer from imported prefixes

Until now, when calculating the bgp bestpath route, the peer
comparison could not be performed for imported prefixes, as
the peer origin could not be retrieved. As consequence, the
reason why a given prefix as chosen was wrong: "Locally
configured route" was the main reason, whereas the prefix
was imported from a remote peer.

Fix this by searching for the real peer.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c