Fix fib_path encoding (VPP-921) 45/7845/3
authorFlorin Coras <fcoras@cisco.com>
Sat, 29 Jul 2017 18:50:31 +0000 (11:50 -0700)
committerNeale Ranns <nranns@cisco.com>
Mon, 31 Jul 2017 08:21:08 +0000 (08:21 +0000)
Change-Id: I4c3b22c333b052d068f1a5977e9d4e38471693d6
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/fib/fib_path.c

index a32baf2..00a3fa6 100644 (file)
@@ -2163,9 +2163,11 @@ fib_path_encode (fib_node_index_t path_list_index,
       case FIB_PATH_TYPE_RECEIVE:
         api_rpath->rpath.frp_addr = path->receive.fp_addr;
         api_rpath->rpath.frp_sw_if_index = path->receive.fp_interface;
+        api_rpath->dpo = path->fp_dpo;
         break;
       case FIB_PATH_TYPE_ATTACHED:
         api_rpath->rpath.frp_sw_if_index = path->attached.fp_interface;
+        api_rpath->dpo = path->fp_dpo;
         break;
       case FIB_PATH_TYPE_ATTACHED_NEXT_HOP:
         api_rpath->rpath.frp_sw_if_index = path->attached_next_hop.fp_interface;