diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-10-26 23:57:09 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-10-30 14:36:50 +0000 |
commit | 9d286a47017c3cb641e62586929ec4dbac04a2d4 (patch) | |
tree | aa6f22e0cfdee08302cfd1e5662498944a463cec /src/vnet/lisp-cp/lisp_cli.c | |
parent | 7008da2667d2876bc58aa5ae57c4a9de48cc756b (diff) |
LISP: improve updating the dataplne when locators change
Change-Id: Ifc0296834e25ddbdd0ad8283c061f309801b053c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-cp/lisp_cli.c')
-rw-r--r-- | src/vnet/lisp-cp/lisp_cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/lisp-cp/lisp_cli.c b/src/vnet/lisp-cp/lisp_cli.c index 509046019ec..738dda7044d 100644 --- a/src/vnet/lisp-cp/lisp_cli.c +++ b/src/vnet/lisp-cp/lisp_cli.c @@ -172,6 +172,7 @@ lisp_add_del_local_eid_command_fn (vlib_main_t * vm, unformat_input_t * input, ; else if (unformat (line_input, "locator-set %_%v%_", &locator_set_name)) { + vec_terminate_c_string (locator_set_name); p = hash_get_mem (lcm->locator_set_index_by_name, locator_set_name); if (!p) { @@ -672,6 +673,7 @@ lisp_pitr_set_locator_set_command_fn (vlib_main_t * vm, clib_warning ("No locator set specified!"); goto done; } + vec_terminate_c_string (locator_set_name); rv = vnet_lisp_pitr_set_locator_set (locator_set_name, is_add); if (0 != rv) { @@ -1438,6 +1440,7 @@ lisp_add_del_mreq_itr_rlocs_command_fn (vlib_main_t * vm, } } + vec_terminate_c_string (locator_set_name); a->is_add = is_add; a->locator_set_name = locator_set_name; rv = vnet_lisp_add_del_mreq_itr_rlocs (a); |