bier: Disposition paths don't set the next-hop 36/34236/1
authorNeale Ranns <neale@graphiant.com>
Mon, 25 Oct 2021 10:24:51 +0000 (10:24 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 25 Oct 2021 10:24:51 +0000 (10:24 +0000)
Type: fix

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I3c4152219e5307ac0fe773e16d597f0e4b9a7d4c

src/vnet/fib/fib_api.c

index 3ccb9ca..75a17cf 100644 (file)
@@ -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;