diff options
author | Florin Coras <fcoras@cisco.com> | 2016-05-06 14:22:40 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-05-09 11:35:52 +0000 |
commit | ed09a050b7981b631dda6ee9de7bcc5b1279868e (patch) | |
tree | e814ed3354c3205b7c473f35332226d9d91def54 /vpp/api | |
parent | 30d41fff9b649b6bc4c24af8c4059da7ad121de4 (diff) |
ONE-5: Remove unused vnet_lisp_gpe_add_del_tunnel API
Change-Id: Ib22ec807d2b74b7c3cb37f66052cd07bc4d896db
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'vpp/api')
-rw-r--r-- | vpp/api/api.c | 63 | ||||
-rw-r--r-- | vpp/api/custom_dump.c | 44 | ||||
-rw-r--r-- | vpp/api/vpe.api | 23 |
3 files changed, 0 insertions, 130 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c index c672d4a3..5e808795 100644 --- a/vpp/api/api.c +++ b/vpp/api/api.c @@ -291,7 +291,6 @@ _(NSH_GRE_ADD_DEL_TUNNEL, nsh_gre_add_del_tunnel) \ _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ _(L2_FIB_TABLE_ENTRY, l2_fib_table_entry) \ _(NSH_VXLAN_GPE_ADD_DEL_TUNNEL, nsh_vxlan_gpe_add_del_tunnel) \ -_(LISP_GPE_ADD_DEL_TUNNEL, lisp_gpe_add_del_tunnel) \ _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ _(WANT_IP4_ARP_EVENTS, want_ip4_arp_events) \ _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ @@ -4664,64 +4663,6 @@ out: } static void -vl_api_lisp_gpe_add_del_tunnel_t_handler -(vl_api_lisp_gpe_add_del_tunnel_t * mp) -{ - vl_api_lisp_gpe_add_del_tunnel_reply_t * rmp; - int rv = 0; - vnet_lisp_gpe_add_del_tunnel_args_t _a, *a = &_a; - u32 encap_fib_index, decap_fib_index; - u32 decap_next_index; - uword * p; - ip4_main_t * im = &ip4_main; - u32 sw_if_index = ~0; - - p = hash_get (im->fib_index_by_table_id, ntohl(mp->encap_vrf_id)); - if (! p) { - rv = VNET_API_ERROR_NO_SUCH_FIB; - goto out; - } - encap_fib_index = p[0]; - - decap_next_index = ntohl(mp->decap_next_index); - - /* Interpret decap_vrf_id as an opaque if sending to other-than-ip4-input */ - if (decap_next_index == NSH_GRE_INPUT_NEXT_IP4_INPUT) { - p = hash_get (im->fib_index_by_table_id, ntohl(mp->decap_vrf_id)); - if (! p) { - rv = VNET_API_ERROR_NO_SUCH_INNER_FIB; - goto out; - } - decap_fib_index = p[0]; - } else { - decap_fib_index = ntohl(mp->decap_vrf_id); - } - - memset (a, 0, sizeof (*a)); - - a->is_add = mp->is_add; - /* ip addresses sent in network byte order */ - a->src.as_u32 = mp->src; - a->dst.as_u32 = mp->dst; - a->encap_fib_index = encap_fib_index; - a->decap_fib_index = decap_fib_index; - a->decap_next_index = decap_next_index; - a->flags = mp->flags; - a->ver_res = mp->ver_res; - a->res = mp->res; - a->next_protocol = mp->next_protocol; - a->vni = clib_net_to_host_u32 (mp->iid); - - rv = vnet_lisp_gpe_add_del_tunnel (a, &sw_if_index); - -out: - REPLY_MACRO2(VL_API_LISP_GPE_ADD_DEL_TUNNEL_REPLY, - ({ - rmp->sw_if_index = ntohl (sw_if_index); - })); -} - -static void vl_api_lisp_add_del_locator_set_t_handler(vl_api_lisp_add_del_locator_set_t *mp) { vl_api_lisp_add_del_locator_set_reply_t *rmp; @@ -4881,7 +4822,6 @@ vl_api_lisp_gpe_add_del_fwd_entry_t_handler( vl_api_lisp_gpe_add_del_fwd_entry_reply_t *rmp; int rv = 0; ip_address_t slocator, dlocator; - ip_prefix_t * prefp = NULL; gid_address_t eid; vnet_lisp_gpe_add_del_fwd_entry_args_t a; @@ -4893,9 +4833,6 @@ vl_api_lisp_gpe_add_del_fwd_entry_t_handler( a.deid = eid; a.slocator = slocator; a.dlocator = dlocator; - prefp = &gid_address_ippref(&a.deid); - a.decap_next_index = (ip_prefix_version(prefp) == IP4) ? - LISP_GPE_INPUT_NEXT_IP4_INPUT : LISP_GPE_INPUT_NEXT_IP6_INPUT; rv = vnet_lisp_gpe_add_del_fwd_entry (&a, 0); REPLY_MACRO(VL_API_LISP_GPE_ADD_DEL_FWD_ENTRY_REPLY); diff --git a/vpp/api/custom_dump.c b/vpp/api/custom_dump.c index 574e102f..d0d77f68 100644 --- a/vpp/api/custom_dump.c +++ b/vpp/api/custom_dump.c @@ -1684,49 +1684,6 @@ static void *vl_api_nsh_vxlan_gpe_add_del_tunnel_t_print FINISH; } -static void *vl_api_lisp_gpe_add_del_tunnel_t_print -(vl_api_lisp_gpe_add_del_tunnel_t * mp, void *handle) -{ - u8 * s; - - s = format (0, "SCRIPT: lisp_gpe_add_del_tunnel "); - - s = format (s, "src %U dst %U ", format_ip4_address, &mp->src, - format_ip4_address, &mp->dst); - - if (mp->encap_vrf_id) - s = format (s, "encap-vrf-id %d ", ntohl(mp->encap_vrf_id)); - - if (mp->decap_vrf_id) - s = format (s, "decap-vrf-id %d ", ntohl(mp->decap_vrf_id)); - - s = format (s, "decap-next %d ", ntohl(mp->decap_next_index)); - - s = format (s, "flags %x ", (u32)(mp->flags)); - - if (mp->ver_res) - s = format (s, "ver_res %x ", (u32)(mp->ver_res)); - - if (mp->res) - s = format (s, "res %x ", (u32)(mp->res)); - - s = format (s, "iid %d ", ntohl (mp->iid)); - - if (mp->is_add == 0) - s = format (s, "del "); - - if (mp->next_protocol == 1) - s = format (s, "next-ip4 "); - else if (mp->next_protocol == 2) - s = format (s, "next-ip6 "); - else if (mp->next_protocol == 3) - s = format (s, "next-ethernet "); - else if (mp->next_protocol == 4) - s = format (s, "next-nsh "); - - FINISH; -} - static void *vl_api_interface_name_renumber_t_print (vl_api_interface_name_renumber_t * mp, void * handle) { @@ -1918,7 +1875,6 @@ _(SHOW_VERSION, show_version) \ _(NSH_GRE_ADD_DEL_TUNNEL, nsh_gre_add_del_tunnel) \ _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ _(NSH_VXLAN_GPE_ADD_DEL_TUNNEL, nsh_vxlan_gpe_add_del_tunnel) \ -_(LISP_GPE_ADD_DEL_TUNNEL, lisp_gpe_add_del_tunnel) \ _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ _(WANT_IP4_ARP_EVENTS, want_ip4_arp_events) \ _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ diff --git a/vpp/api/vpe.api b/vpp/api/vpe.api index 6ecb15fb..10c62bb3 100644 --- a/vpp/api/vpe.api +++ b/vpp/api/vpe.api @@ -2169,29 +2169,6 @@ define nsh_vxlan_gpe_add_del_tunnel_reply { u32 sw_if_index; }; -define lisp_gpe_add_del_tunnel { - u32 client_index; - u32 context; - u32 src; - u32 dst; - u32 encap_vrf_id; - u32 decap_vrf_id; - u32 decap_next_index; - u8 is_add; - u8 flags; - u8 ver_res; - u8 res; - u8 next_protocol; - /* in network byte order */ - u32 iid; -}; - -define lisp_gpe_add_del_tunnel_reply { - u32 context; - i32 retval; - u32 sw_if_index; -}; - /** \brief add or delete locator_set @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request |