From 3265ec8cb12d94e91a38ac377e78970eb032d88c Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 25 Oct 2021 10:24:51 +0000 Subject: bier: Disposition paths don't set the next-hop Type: fix Signed-off-by: Neale Ranns Change-Id: I3c4152219e5307ac0fe773e16d597f0e4b9a7d4c --- src/vnet/fib/fib_api.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/vnet/fib/fib_api.c b/src/vnet/fib/fib_api.c index 3ccb9cab5ae..75a17cfca02 100644 --- a/src/vnet/fib/fib_api.c +++ b/src/vnet/fib/fib_api.c @@ -294,22 +294,17 @@ fib_api_path_decode (vl_api_fib_path_t *in, if (!(out->frp_flags & FIB_ROUTE_PATH_BIER_IMP)) { - fib_api_next_hop_decode(in, &out->frp_addr); + index_t bdti; - if (ip46_address_is_zero(&out->frp_addr)) + bdti = bier_disp_table_find(ntohl(in->table_id)); + + if (INDEX_INVALID != bdti) + { + out->frp_fib_index = bdti; + } + else { - index_t bdti; - - bdti = bier_disp_table_find(ntohl(in->table_id)); - - if (INDEX_INVALID != bdti) - { - out->frp_fib_index = bdti; - } - else - { - return (VNET_API_ERROR_NO_SUCH_FIB); - } + return (VNET_API_ERROR_NO_SUCH_FIB); } } break; -- cgit 1.2.3-korg