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-31 14:48:22 +0200
commit6a2e4392e9206fe4398e1ccdd431446097fc5503 (patch)
tree6eacc957605649dd22118fa26d68b0268a2e0022 /vpp
parentd1c5cc3930277d6a09dbe80b5d1fcb636ce060d2 (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 f54ef01d..8603ec88 100644
--- a/vpp/api/api.c
+++ b/vpp/api/api.c
@@ -4679,7 +4679,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);
@@ -4713,7 +4713,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);