A number of the pg commands were being passed the whole exec file,
instead of just a line from the file.
Type: fix
Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: I2f96e7648b9b7d501088eddff7e4a761973e71f4
char *file_name;
int fd;
unformat_input_t sub_input;
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;
clib_error_t *error;
unix_cli_main_t *cm = &unix_cli_main;
unix_cli_file_t *cf;
- 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:
unformat_free (&sub_input);
done: