summaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-08-11 12:21:37 +0200
committerFlorin Coras <florin.coras@gmail.com>2016-08-23 13:23:13 +0000
commit3a83460868d580adc7b51398bfd4093730cf0ed6 (patch)
treee3731d4ac99d1fb5a817c5374998e7e1fae84407 /vpp
parentb1b1a14977f77d9805dd2cb11c7e8ddfc404818a (diff)
VPP-323: Add LISP locator set index to reply API message
Change-Id: Id798f63f4cf1a8aa7a75931bc23d3c7f5d738938 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/vpp-api/api.c7
-rw-r--r--vpp/vpp-api/vpe.api2
2 files changed, 8 insertions, 1 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c
index db818fdf4c8..17893f122b2 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 0685d21ea90..3b3025d487d 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