]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix colored nexthops resolution
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 13 May 2024 15:42:30 +0000 (17:42 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 13 May 2024 16:00:50 +0000 (18:00 +0200)
commit42c497dec06b514d8bbf30ea01dea2601e82573c
treeb171d0f521a6dace47525c3e587bc8c088562362
parentb6f1b32c8a2423e3fbc5537cb8b53c065197b931
bgpd: fix colored nexthops resolution

When the SR-TE service is off, colored BGP routes are not
selected if it is recursively resolved over routes that are
colored only.

Actually, a BGP nexthop context includes the color attribute;
when an update from ZEBRA is received, there is no color, and
the colored BGP nexthop contexts are parsed, only if there
is a non colored BGP nexthop context. The actual setup shows
this may not be the case every time.

Fix this by parsing all the colored BGP nexthop contexts.

Fixes: b8210849b8ac ("bgpd: Make bgp ready to remove distinction between 2 nh tracking types")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_nht.c