fib: path flag FIB_API_PATH_TYPE_INTERFACE_RX not copied to client 90/25690/2
authorIJsbrand Wijnands <ice@cisco.com>
Thu, 5 Mar 2020 14:25:32 +0000 (06:25 -0800)
committerNeale Ranns <nranns@cisco.com>
Fri, 6 Mar 2020 11:07:59 +0000 (11:07 +0000)
This path flag FIB_API_PATH_TYPE_INTERFACE_RX is not copied to the client bin_api.

Type: fix

Change-Id:

Signed-off-by: IJsbrand Wijnands <ice@cisco.com>
Change-Id: I612044d2f564c852f83fceb63ce750a6330e1365

src/vnet/fib/fib_api.c

index 54cff92..64e2887 100644 (file)
@@ -418,6 +418,10 @@ fib_api_path_encode (const fib_route_path_t * rpath,
         out->type = FIB_API_PATH_TYPE_BIER_IMP;
         out->nh.obj_id = rpath->frp_bier_imp;
     }
+    else if (rpath->frp_flags & FIB_ROUTE_PATH_INTF_RX)
+    {
+        out->type = FIB_API_PATH_TYPE_INTERFACE_RX;
+    }
     else
     {
         out->type = FIB_API_PATH_TYPE_NORMAL;