diff options
author | 2017-03-07 12:52:31 -0500 | |
---|---|---|
committer | 2017-03-07 21:33:46 +0000 | |
commit | 45e4f365086267ef2551b1dedf4e309bdd00a34a (patch) | |
tree | 140db35fa966369f131575648dcce7b61799b6e5 /src/vpp/api | |
parent | 3466c30261950823828d1dad0d2fb170ee2f9aaf (diff) |
Missing plugin binary API command fns found after brief search
Create hash tables before loading plugins. Previous init sequence
wiped out most if not all of them.
Change-Id: I5dd628895f68f740d525951511a9fef1822d39da
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vpp/api')
-rw-r--r-- | src/vpp/api/api_main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vpp/api/api_main.c b/src/vpp/api/api_main.c index 6ae510b1..7913bc01 100644 --- a/src/vpp/api/api_main.c +++ b/src/vpp/api/api_main.c @@ -56,6 +56,16 @@ api_main_init (vlib_main_t * vm) VLIB_INIT_FUNCTION (api_main_init); +void +vat_plugin_hash_create (void) +{ + vat_main_t *vam = &vat_main; + + vam->sw_if_index_by_interface_name = hash_create_string (0, sizeof (uword)); + vam->function_by_name = hash_create_string (0, sizeof (uword)); + vam->help_by_name = hash_create_string (0, sizeof (uword)); +} + static clib_error_t * api_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) |