diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-05-30 15:57:40 +0200 |
---|---|---|
committer | Chris Luke <chris_luke@cable.comcast.com> | 2016-05-31 18:50:39 +0000 |
commit | 58f886ab9a2dd8d3f5bdcb34fd1c4fde212ede97 (patch) | |
tree | 4217d71c4ea9abde14ecb82db201cf56fd04edbe /vpp | |
parent | 6a2e4392e9206fe4398e1ccdd431446097fc5503 (diff) |
Add CLI/API for clearing all remote mappings
Change-Id: I5aef12d3a9c8daefff52e5f958c504f5d2ff9fd0
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r-- | vpp/api/api.c | 4 | ||||
-rw-r--r-- | vpp/api/vpe.api | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c index 8603ec88..ea14bffb 100644 --- a/vpp/api/api.c +++ b/vpp/api/api.c @@ -4994,8 +4994,8 @@ vl_api_lisp_add_del_remote_mapping_t_handler ( vec_add1 (rlocs, rloc); } - rv = vnet_lisp_add_del_remote_mapping (deid, seid, rlocs, - mp->action, mp->is_add); + rv = vnet_lisp_add_del_remote_mapping (deid, seid, rlocs, mp->action, + mp->is_add, mp->del_all); vec_free (rlocs); REPLY_MACRO(VL_API_LISP_GPE_ADD_DEL_IFACE_REPLY); } diff --git a/vpp/api/vpe.api b/vpp/api/vpe.api index 9ae4987f..9a639c61 100644 --- a/vpp/api/vpe.api +++ b/vpp/api/vpe.api @@ -2369,6 +2369,7 @@ define lisp_pitr_set_locator_set_reply { @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param is_add - add address if non-zero, else delete + @param del_all - if set, delete all remote mappings @param vni - virtual network instance @param action - negative map-reply action @param eid_is_ip4 - ipv4/6 of source and destination EIDs @@ -2381,6 +2382,7 @@ define lisp_add_del_remote_mapping { u32 client_index; u32 context; u8 is_add; + u8 del_all; u32 vni; u8 action; u8 eid_is_ip4; |