]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: correctly initialize the IP nexthop of redistributed routes
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 13 Jan 2023 14:51:59 +0000 (15:51 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 22 Mar 2023 11:06:29 +0000 (12:06 +0100)
commitf8ac50d4b67d9951324f3869a8b5cda06b232b04
tree34c7fbb0e57d068df85b7c12d322f26d1f0052a9
parentaa274376040e216710560b230fa473ea5f922ac2
bgpd: correctly initialize the IP nexthop of redistributed routes

This is a preliminary work to export redistributed routes from
a given VRF in an VPN network. The exportation works well, when
the label allocation is based on an per-vrf mode, but not on
a per nexthop mode.

To associate a label with a connected nexthop, the nexthop
tracking contexts are used. Until today, there was no tracking
context for redistributed routes. But when using this vpn
allocation mode, one needs to know whether the route is directly
connected or not. When using the nexthop tracking context, the
nexthop attribute of the bgp update needs to have the nexthop
properly set. This was not the case for the mp_nexthop_global_in
attribute which was empty.

This commit is mandatory in order to later use nexthop tracking
context.

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