From 8145842bf273823192140c57fc773bb92d9db64f Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 12 Mar 2018 06:59:36 -0700 Subject: Common form of fib-path reproting in dumps Change-Id: I8f6fdbbeef2ac7e9fe5d87490ae5cba6e9a0b294 Signed-off-by: Neale Ranns --- src/vnet/bier/bier_api.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/vnet/bier/bier_api.c') diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c index 77b2cabaa44..8f168c46e29 100644 --- a/src/vnet/bier/bier_api.c +++ b/src/vnet/bier/bier_api.c @@ -307,11 +307,7 @@ send_bier_route_details (const bier_table_t *bt, fp = mp->br_paths; vec_foreach (api_rpath, api_rpaths) { - fp->weight = api_rpath->rpath.frp_weight; - fp->preference = api_rpath->rpath.frp_preference; - fp->sw_if_index = htonl (api_rpath->rpath.frp_sw_if_index); - fp->n_labels = 0; - copy_fib_next_hop (api_rpath, fp); + fib_api_path_encode(api_rpath, fp); fp++; } @@ -672,11 +668,7 @@ send_bier_disp_entry_details (const bier_disp_table_t *bdt, fp = mp->bde_paths; vec_foreach (api_rpath, api_rpaths) { - fp->weight = api_rpath->rpath.frp_weight; - fp->preference = api_rpath->rpath.frp_preference; - fp->sw_if_index = htonl (api_rpath->rpath.frp_sw_if_index); - fp->n_labels = 0; - copy_fib_next_hop (api_rpath, fp); + fib_api_path_encode(api_rpath, fp); fp++; } -- cgit 1.2.3-korg