* the same new name.
* Then, throw away the old shared name-vector.
*/
- for (i = 0; i < vec_len (vlib_mains); i++)
+ for (i = 0; i < vlib_get_n_threads (); i++)
{
- this_vlib_main = vlib_mains[i];
+ this_vlib_main = vlib_get_main_by_index (i);
if (this_vlib_main == 0)
continue;
n = vlib_get_node (this_vlib_main,
char *file_name;
int fd;
unformat_input_t sub_input;
+ unformat_input_t _line_input, *line_input = &_line_input;
clib_error_t *error;
unix_cli_main_t *cm = &unix_cli_main;
unix_cli_file_t *cf;
vec_free (expanded);
}
- vlib_cli_input (vm, &sub_input, 0, 0);
+ while (unformat_user (&sub_input, unformat_line_input, line_input))
+ {
+ vlib_cli_input (vm, line_input, 0, 0);
+ unformat_free (line_input);
+ }
unformat_free (&sub_input);
done: