aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorAndrej Kozemcak <akozemca@cisco.com>2016-05-26 12:20:08 +0200
committerAndrej Kozemcak <akozemca@cisco.com>2016-05-30 09:17:17 +0200
commit68660906e60416dcb573402bff5a40b26c2213c2 (patch)
tree992d6efd7a72fa7b568626c901441acf62c9cc0d /vpp
parent3d4110fe0ca9ff2c723f04855baf256b90c26a37 (diff)
ONE-15: Fix duplicate locator, refactoring locator
Check duplication locator and clean after locator when remove it. Refactoring locator_set code. Change-Id: Ib83cbcddc7a363a60fa5b6a366203d0dc0ea7ca6 Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/api/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c
index ae8ddf9de13..7aa898c6e30 100644
--- a/vpp/api/api.c
+++ b/vpp/api/api.c
@@ -4600,7 +4600,7 @@ vl_api_lisp_add_del_locator_set_t_handler(vl_api_lisp_add_del_locator_set_t *mp)
a->is_add = mp->is_add;
a->local = 1;
- rv = vnet_lisp_add_del_locator_set_name(a, &ls_index);
+ rv = vnet_lisp_add_del_locator_set(a, &ls_index);
vec_free(locator_name);
@@ -4634,7 +4634,7 @@ vl_api_lisp_add_del_locator_t_handler(
a->is_add = mp->is_add;
a->local = 1;
- rv = vnet_lisp_add_del_locator(a, &ls_index);
+ rv = vnet_lisp_add_del_locator(a, NULL, &ls_index);
vec_free(locators);
vec_free(locator_name);