summaryrefslogtreecommitdiffstats
path: root/vpp/api/custom_dump.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-05-30 19:45:51 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-05-30 03:31:13 +0000
commit0e06e2b1420bca9b2bddd43e9642e56c81768fc2 (patch)
tree8969cb6ac5aa1ce50b3f546621ef8b633ff865b3 /vpp/api/custom_dump.c
parent4b46c84901b6ea393a5118d7835d77aa6b3cef58 (diff)
Add Dump API for VxLAN-GPE tunnel
Change-Id: I4913fe6c4b1280939147887896aea9b79a9f7f10 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'vpp/api/custom_dump.c')
-rw-r--r--vpp/api/custom_dump.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/vpp/api/custom_dump.c b/vpp/api/custom_dump.c
index ba4cf538d2f..638c4a78b6e 100644
--- a/vpp/api/custom_dump.c
+++ b/vpp/api/custom_dump.c
@@ -1600,6 +1600,18 @@ static void *vl_api_vxlan_gpe_add_del_tunnel_t_print
FINISH;
}
+static void * vl_api_vxlan_gpe_tunnel_dump_t_print
+(vl_api_vxlan_gpe_tunnel_dump_t * mp, void *handle)
+{
+ u8 * s;
+
+ s = format (0, "SCRIPT: vxlan_gpe_tunnel_dump ");
+
+ s = format (s, "sw_if_index %d ", ntohl(mp->sw_if_index));
+
+ FINISH;
+}
+
static void *vl_api_interface_name_renumber_t_print
(vl_api_interface_name_renumber_t * mp, void * handle)
{
@@ -1789,7 +1801,8 @@ _(MEMCLNT_CREATE, memclnt_create) \
_(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \
_(SHOW_VERSION, show_version) \
_(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \
-_(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \
+_(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \
+_(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \
_(INTERFACE_NAME_RENUMBER, interface_name_renumber) \
_(WANT_IP4_ARP_EVENTS, want_ip4_arp_events) \
_(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \