]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix label allocation per next-hop applied to unicast
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 24 May 2023 11:50:37 +0000 (13:50 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 16 Jun 2023 08:54:58 +0000 (10:54 +0200)
commit658c5ebe385ac315367ce964cda06f52ad050b07
tree7c80bc1d06f5182bb04f4e61f3607a40b20613b7
parentef1fc25431684864ae90d6ea674dc0bc57cc4b51
bgpd: fix label allocation per next-hop applied to unicast

The label allocation per next-hop functionality is calling
the 'bgp_find_or_add_nexthop()' method using the SAFI_MPLS_VPN
safi parameter, whereas the call is supposed to apply to
unicast paths.

Fix this by using the SAFI_UNICAST safi parameter in the call.
Simplify the vpn_leak_from_vrf_get_per_nexthop_label() API by
removing the safi parameter from the function.

Fixes: 577be36a41be ("bgpd: add support for l3vpn per-nexthop label")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c