bt = bier_table_get(bti);
- fib_path_list_walk(bt->bt_pl,
- bier_table_ecmp_walk_path_list,
- &ewc);
+ if (FIB_NODE_INDEX_INVALID != bt->bt_pl)
+ {
+ fib_path_list_walk(bt->bt_pl,
+ bier_table_ecmp_walk_path_list,
+ &ewc);
+ }
}
void
{
int ii;
- pool_foreach_index(ii, bier_table_pool,
- ({
+ pool_foreach_index (ii, bier_table_pool)
+ {
vlib_cli_output (vm, "%U", format_bier_table, ii, flags);
- }));
+ }
}
}