From 3a83460868d580adc7b51398bfd4093730cf0ed6 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Thu, 11 Aug 2016 12:21:37 +0200 Subject: VPP-323: Add LISP locator set index to reply API message Change-Id: Id798f63f4cf1a8aa7a75931bc23d3c7f5d738938 Signed-off-by: Filip Tehlar --- vpp/vpp-api/api.c | 7 ++++++- vpp/vpp-api/vpe.api | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'vpp/vpp-api') diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index db818fdf..17893f12 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -5160,7 +5160,12 @@ vl_api_lisp_add_del_locator_set_t_handler (vl_api_lisp_add_del_locator_set_t * vec_free (locator_name); vec_free (a->locators); - REPLY_MACRO (VL_API_LISP_ADD_DEL_LOCATOR_SET_REPLY); + /* *INDENT-OFF* */ + REPLY_MACRO2 (VL_API_LISP_ADD_DEL_LOCATOR_SET_REPLY, + ({ + rmp->ls_index = clib_host_to_net_u32 (ls_index); + })); + /* *INDENT-ON* */ } static void diff --git a/vpp/vpp-api/vpe.api b/vpp/vpp-api/vpe.api index 0685d21e..3b3025d4 100644 --- a/vpp/vpp-api/vpe.api +++ b/vpp/vpp-api/vpe.api @@ -2362,11 +2362,13 @@ define lisp_add_del_locator_set /** \brief Reply for locator_set add/del @param context - returned sender context, to match reply w/ request @param retval - return code + @param ls_index - locator set index */ define lisp_add_del_locator_set_reply { u32 context; i32 retval; + u32 ls_index; }; /** \brief add or delete locator for locator_set -- cgit 1.2.3-korg