X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vpp%2Fapi%2Fcustom_dump.c;h=6bdbdc55803293d83544a6847370b85abb1e7a27;hb=00bbf276be22fa0458366d4dd3f4daf4e55d13e7;hp=6a402ead744ae0026b4967173ff79d084f6902f6;hpb=433688dbdcaa550f7cdb6314742fb46c0c95d5d8;p=vpp.git diff --git a/vpp/api/custom_dump.c b/vpp/api/custom_dump.c index 6a402ead744..6bdbdc55803 100644 --- a/vpp/api/custom_dump.c +++ b/vpp/api/custom_dump.c @@ -1727,6 +1727,18 @@ static void * vl_api_cop_whitelist_enable_disable_t_print FINISH; } +static void *vl_api_sw_interface_clear_stats_t_print +(vl_api_sw_interface_clear_stats_t * mp, void *handle) +{ + u8 * s; + + s = format (0, "SCRIPT: sw_interface_clear_stats "); + if (mp->sw_if_index != ~0) + s = format (s, "sw_if_index %d ", ntohl(mp->sw_if_index)); + + FINISH; +} + #define foreach_custom_print_function \ _(CREATE_LOOPBACK, create_loopback) \ _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \ @@ -1808,7 +1820,8 @@ _(IP_DUMP, ip_dump) \ _(DELETE_LOOPBACK, delete_loopback) \ _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \ _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ -_(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) +_(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \ +_(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) void vl_msg_api_custom_dump_configure (api_main_t *am) {