vlib: improve test coverage

Add tests.
Remove unused rule-based parser code.

Type: test

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I3ca3a9dd9da8ee8f3a47004c98f2f5644db10057
This commit is contained in:
Dave Barach
2019-12-09 10:45:47 -05:00
committed by Florin Coras
parent 5224b5cbd5
commit 6b3f25caff
7 changed files with 90 additions and 181 deletions

View File

@ -140,15 +140,6 @@ typedef struct
/* Hash table mapping normalized path to index into all_commands. */
uword *command_index_by_path;
/* Vector of all known parse rules. */
vlib_cli_parse_rule_t *parse_rules;
/* Hash table mapping parse rule name to index into parse_rule vector. */
uword *parse_rule_index_by_name;
/* Data parsed for rules. */
void **parse_rule_data;
/* registration list added by constructors */
vlib_cli_command_t *cli_command_registrations;