summaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/fib_path.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-12-14 11:34:37 -0800
committerNeale Ranns <nranns@cisco.com>2017-12-15 09:51:46 +0000
commit119dd3af4b067cbbe27f20f0508bd959291f0472 (patch)
tree019cfbbcab5e1277d07e17d6940195686475ca42 /src/vnet/fib/fib_path.c
parent23f0c4515f62b18ef6f1ff7cab537838f0f65457 (diff)
fib: fix show fib path-list and path
Change-Id: I465282e513b6a0482e96dd02fc7e0e4ed3e3731a Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/fib/fib_path.c')
-rw-r--r--src/vnet/fib/fib_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c
index 8d738c2b727..f7fed26ac9a 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -2638,9 +2638,9 @@ show_fib_path_command (vlib_main_t * vm,
else
{
vlib_cli_output (vm, "FIB Paths");
- pool_foreach(path, fib_path_pool,
+ pool_foreach_index (pi, fib_path_pool,
({
- vlib_cli_output (vm, "%U", format_fib_path, path);
+ vlib_cli_output (vm, "%U", format_fib_path, pi, 0);
}));
}