fib: fix show fib path-list and path

Change-Id: I465282e513b6a0482e96dd02fc7e0e4ed3e3731a
Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c
index 8d738c2..f7fed26 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -2638,9 +2638,9 @@
     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);
 	}));
     }