summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-10-25 10:24:51 +0000
committerNeale Ranns <neale@graphiant.com>2021-10-25 10:24:51 +0000
commit3265ec8cb12d94e91a38ac377e78970eb032d88c (patch)
tree9dd9bfedd0d3dbd475893dd74fe3bd95fbb5ae80 /src
parent312b4cd841c94551e1de54df973891747306c390 (diff)
bier: Disposition paths don't set the next-hop
Type: fix Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I3c4152219e5307ac0fe773e16d597f0e4b9a7d4c
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_api.c23
1 files changed, 9 insertions, 14 deletions
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;