diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-05-24 13:50:37 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-06-16 10:54:58 +0200 |
| commit | 658c5ebe385ac315367ce964cda06f52ad050b07 (patch) | |
| tree | 7c80bc1d06f5182bb04f4e61f3607a40b20613b7 /lib/json.c | |
| parent | ef1fc25431684864ae90d6ea674dc0bc57cc4b51 (diff) | |
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>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions
