fib: fix show fib path-list and path 53/9853/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 14 Dec 2017 19:34:37 +0000 (11:34 -0800)
committerNeale Ranns <nranns@cisco.com>
Fri, 15 Dec 2017 09:51:46 +0000 (09:51 +0000)
Change-Id: I465282e513b6a0482e96dd02fc7e0e4ed3e3731a
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/fib/fib_path.c
src/vnet/fib/fib_path_list.c

index 8d738c2..f7fed26 100644 (file)
@@ -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);
        }));
     }
 
index 5201b5a..763f092 100644 (file)
@@ -1375,9 +1375,9 @@ show_fib_path_list_command (vlib_main_t * vm,
         * show all
         */
        vlib_cli_output (vm, "FIB Path Lists");
-       pool_foreach(path_list, fib_path_list_pool,
+       pool_foreach_index (pli, fib_path_list_pool,
        ({
-           vlib_cli_output (vm, "%U", format_fib_path_list, path_list);
+           vlib_cli_output (vm, "%U", format_fib_path_list, pli, 0);
        }));
     }
     return (NULL);