summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-08-29 02:09:47 -0700
committerDamjan Marion <dmarion@me.com>2018-08-29 11:10:50 +0000
commit77eb9073b178e8d4375bf0ef274246586f018ddc (patch)
treef7cc05761b9ab7496e89dc175742326dcc72e764 /src/vnet/ip
parente4fc3fbb782375c6003c9e7c8400efb186d83f7a (diff)
Consolidate table->index conversion in fib-path CLI processing
Change-Id: I221cebddc45efbfdec428b7df2af96e2aedff2dd Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/lookup.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vnet/ip/lookup.c b/src/vnet/ip/lookup.c
index 8fa8e7e3ace..42509972a98 100644
--- a/src/vnet/ip/lookup.c
+++ b/src/vnet/ip/lookup.c
@@ -452,22 +452,6 @@ vnet_ip_route_cmd (vlib_main_t * vm,
{
for (j = 0; j < vec_len (rpaths); j++)
{
- u32 fi;
- /*
- * the CLI parsing stored table Ids, swap to FIB indicies
- */
- fi = fib_table_find (prefixs[i].fp_proto,
- rpaths[i].frp_fib_index);
-
- if (~0 == fi)
- {
- error =
- clib_error_return (0, "Via table %d does not exist",
- rpaths[i].frp_fib_index);
- goto done;
- }
- rpaths[i].frp_fib_index = fi;
-
fib_prefix_t rpfx = {
.fp_len = prefixs[i].fp_len,
.fp_proto = prefixs[i].fp_proto,