From db767d6ed54ddef502c9e41fa0682bc795bb9211 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Tue, 22 Jun 2021 13:55:13 +0000 Subject: qos: api cleanup Use autogenerated code. Does not change API definitions. Type: improvement Signed-off-by: Filip Tehlar Change-Id: I39505763371c98b75ff7b697dacd3eeb0d41d40a --- src/vat/api_format.c | 53 ---------------------------------------------------- 1 file changed, 53 deletions(-) (limited to 'src/vat') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index e92eee3bab8..cc0e8c3251f 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -2018,7 +2018,6 @@ _(hw_interface_set_mtu_reply) \ _(tcp_configure_src_addresses_reply) \ _(session_rule_add_del_reply) \ _(ip_container_proxy_add_del_reply) \ -_(qos_record_enable_disable_reply) \ #define _(n) \ static void vl_api_##n##_t_handler \ @@ -2163,7 +2162,6 @@ _(APP_NAMESPACE_ADD_DEL_REPLY, app_namespace_add_del_reply) \ _(SESSION_RULE_ADD_DEL_REPLY, session_rule_add_del_reply) \ _(SESSION_RULES_DETAILS, session_rules_details) \ _(IP_CONTAINER_PROXY_ADD_DEL_REPLY, ip_container_proxy_add_del_reply) \ -_(QOS_RECORD_ENABLE_DISABLE_REPLY, qos_record_enable_disable_reply) \ #define foreach_standalone_reply_msg \ _(SW_INTERFACE_EVENT, sw_interface_event) @@ -9306,56 +9304,6 @@ api_ip_container_proxy_add_del (vat_main_t * vam) return ret; } -static int -api_qos_record_enable_disable (vat_main_t * vam) -{ - unformat_input_t *i = vam->input; - vl_api_qos_record_enable_disable_t *mp; - u32 sw_if_index, qs = 0xff; - u8 sw_if_index_set = 0; - u8 enable = 1; - int ret; - - while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT) - { - if (unformat (i, "%U", api_unformat_sw_if_index, vam, &sw_if_index)) - sw_if_index_set = 1; - else if (unformat (i, "sw_if_index %d", &sw_if_index)) - sw_if_index_set = 1; - else if (unformat (i, "%U", unformat_qos_source, &qs)) - ; - else if (unformat (i, "disable")) - enable = 0; - else - { - clib_warning ("parse error '%U'", format_unformat_error, i); - return -99; - } - } - - if (sw_if_index_set == 0) - { - errmsg ("missing interface name or sw_if_index"); - return -99; - } - if (qs == 0xff) - { - errmsg ("input location must be specified"); - return -99; - } - - M (QOS_RECORD_ENABLE_DISABLE, mp); - - mp->record.sw_if_index = ntohl (sw_if_index); - mp->record.input_source = qs; - mp->enable = enable; - - S (mp); - W (ret); - return ret; -} - - static int q_or_quit (vat_main_t * vam) { @@ -10052,7 +10000,6 @@ _(session_rule_add_del, "[add|del] proto / " \ " / action ") \ _(session_rules_dump, "") \ _(ip_container_proxy_add_del, "[add|del]
") \ -_(qos_record_enable_disable, " | sw_if_index [disable]") /* List of command functions, CLI names map directly to functions */ #define foreach_cli_function \ -- cgit 1.2.3-korg