From 77eb9073b178e8d4375bf0ef274246586f018ddc Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 29 Aug 2018 02:09:47 -0700 Subject: Consolidate table->index conversion in fib-path CLI processing Change-Id: I221cebddc45efbfdec428b7df2af96e2aedff2dd Signed-off-by: Neale Ranns --- src/vnet/mpls/mpls.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/vnet/mpls') diff --git a/src/vnet/mpls/mpls.c b/src/vnet/mpls/mpls.c index aaaba39869e..c35aef943cd 100644 --- a/src/vnet/mpls/mpls.c +++ b/src/vnet/mpls/mpls.c @@ -312,7 +312,6 @@ vnet_mpls_local_label (vlib_main_t * vm, else { fib_node_index_t fib_index; - u32 fi; if (NULL == rpaths) { @@ -325,24 +324,6 @@ vnet_mpls_local_label (vlib_main_t * vm, pfx.fp_label = local_label; pfx.fp_payload_proto = rpaths[0].frp_proto; - /* - * the CLI parsing stored table Ids, swap to FIB indicies - */ - if (FIB_NODE_INDEX_INVALID == rpath.frp_sw_if_index) - { - fi = fib_table_find(dpo_proto_to_fib(pfx.fp_payload_proto), - rpaths[0].frp_fib_index); - - if (~0 == fi) - { - error = clib_error_return(0 , "%U Via table %d does not exist", - format_dpo_proto, pfx.fp_payload_proto, - rpaths[0].frp_fib_index); - goto done; - } - rpaths[0].frp_fib_index = fi; - } - fib_index = mpls_fib_index_from_table_id(table_id); if (FIB_NODE_INDEX_INVALID == fib_index) -- cgit 1.2.3-korg