]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: nht unresolved with global address next-hop
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 30 Jun 2021 12:07:52 +0000 (14:07 +0200)
committermergify-bot <noreply@mergify.io>
Fri, 23 Jul 2021 09:14:28 +0000 (09:14 +0000)
commit6ca84da50b990f954e3241e789de876072196324
treeb3ffe9ec39df1e2118273c1a98502b06efdb484e
parent381752f3679b43f53f5c72e91153729853930a3f
bgpd: nht unresolved with global address next-hop

When bgp peers with ipv6 link local addresses, it may receive a
BGP update with next-hop containing both LL and GA information.
By default, nexthop tracking applies to GA, and ignores presence
of LL, when both addresses are present. This is a problem for
resolving GA as next-hop as the next-hop information can be solved
by using the LL address only.

The solution consists in defaulting the nexthop ipv6 choice to LL
when available, and moving back to GA if a route-map is locally
configured at inbound.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit 17ef5a934355a718caf64f2fd5cac5e252977890)
bgpd/bgp_nht.c