diff options
Diffstat (limited to 'examples/bin_api/interface.api.json')
-rw-r--r-- | examples/bin_api/interface.api.json | 471 |
1 files changed, 262 insertions, 209 deletions
diff --git a/examples/bin_api/interface.api.json b/examples/bin_api/interface.api.json index 0103007..87c9358 100644 --- a/examples/bin_api/interface.api.json +++ b/examples/bin_api/interface.api.json @@ -1,109 +1,4 @@ { - "services": [ - { - "create_subif": { - "reply": "create_subif_reply" - } - }, - { - "delete_subif": { - "reply": "delete_subif_reply" - } - }, - { - "sw_interface_tag_add_del": { - "reply": "sw_interface_tag_add_del_reply" - } - }, - { - "sw_interface_event": { - "reply": null - } - }, - { - "sw_interface_set_rx_mode": { - "reply": "sw_interface_set_rx_mode_reply" - } - }, - { - "sw_interface_dump": { - "reply": "sw_interface_details", - "stream": true - } - }, - { - "sw_interface_get_table": { - "reply": "sw_interface_get_table_reply" - } - }, - { - "sw_interface_add_del_address": { - "reply": "sw_interface_add_del_address_reply" - } - }, - { - "interface_name_renumber": { - "reply": "interface_name_renumber_reply" - } - }, - { - "create_loopback_instance": { - "reply": "create_loopback_instance_reply" - } - }, - { - "sw_interface_set_mtu": { - "reply": "sw_interface_set_mtu_reply" - } - }, - { - "create_loopback": { - "reply": "create_loopback_reply" - } - }, - { - "sw_interface_clear_stats": { - "reply": "sw_interface_clear_stats_reply" - } - }, - { - "create_vlan_subif": { - "reply": "create_vlan_subif_reply" - } - }, - { - "sw_interface_set_mac_address": { - "reply": "sw_interface_set_mac_address_reply" - } - }, - { - "sw_interface_set_table": { - "reply": "sw_interface_set_table_reply" - } - }, - { - "sw_interface_set_flags": { - "reply": "sw_interface_set_flags_reply" - } - }, - { - "delete_loopback": { - "reply": "delete_loopback_reply" - } - }, - { - "want_interface_events": { - "reply": "want_interface_events_reply" - } - }, - { - "sw_interface_set_unnumbered": { - "reply": "sw_interface_set_unnumbered_reply" - } - } - ], - "vl_api_version": "0xa9b5d13", - "enums": [], "messages": [ [ "sw_interface_set_flags", @@ -150,7 +45,7 @@ } ], [ - "sw_interface_set_mtu", + "hw_interface_set_mtu", [ "u16", "_vl_msg_id" @@ -176,6 +71,51 @@ } ], [ + "hw_interface_set_mtu_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "sw_interface_set_mtu", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u32", + "sw_if_index" + ], + [ + "u32", + "mtu", + 4 + ], + { + "crc": "0xd0008db8" + } + ], + [ "sw_interface_set_mtu_reply", [ "u16", @@ -325,6 +265,11 @@ ], [ "u32", + "mtu", + 4 + ], + [ + "u32", "sub_id" ], [ @@ -407,7 +352,7 @@ "i_sid" ], { - "crc": "0x23dee0ff" + "crc": "0x09b4b510" } ], [ @@ -595,111 +540,55 @@ } ], [ - "vnet_interface_simple_counters", - [ - "u16", - "_vl_msg_id" - ], - [ - "u8", - "vnet_counter_type" - ], - [ - "u32", - "first_sw_if_index" - ], - [ - "u32", - "count" - ], - [ - "u64", - "data", - 0, - "count" - ], - { - "crc": "0x9bc4a808" - } - ], - [ - "vnet_interface_combined_counters", + "sw_interface_set_unnumbered", [ "u16", "_vl_msg_id" ], [ - "u8", - "vnet_counter_type" - ], - [ "u32", - "first_sw_if_index" + "client_index" ], [ "u32", - "count" - ], - [ - "vl_api_vlib_counter_t", - "data", - 0, - "count" - ], - { - "crc": "0x2c595002" - } - ], - [ - "vnet_per_interface_simple_counters", - [ - "u16", - "_vl_msg_id" + "context" ], [ "u32", - "count" + "sw_if_index" ], [ "u32", - "timestamp" + "unnumbered_sw_if_index" ], [ - "vl_api_vnet_simple_counter_t", - "data", - 0, - "count" + "u8", + "is_add" ], { - "crc": "0xd1fba9ba" + "crc": "0xa2c1bbda" } ], [ - "vnet_per_interface_combined_counters", + "sw_interface_set_unnumbered_reply", [ "u16", "_vl_msg_id" ], [ "u32", - "count" - ], - [ - "u32", - "timestamp" + "context" ], [ - "vl_api_vnet_combined_counter_t", - "data", - 0, - "count" + "i32", + "retval" ], { - "crc": "0xdc578375" + "crc": "0xe8d4e804" } ], [ - "sw_interface_set_unnumbered", + "sw_interface_clear_stats", [ "u16", "_vl_msg_id" @@ -716,20 +605,12 @@ "u32", "sw_if_index" ], - [ - "u32", - "unnumbered_sw_if_index" - ], - [ - "u8", - "is_add" - ], { - "crc": "0xa2c1bbda" + "crc": "0x529cb13f" } ], [ - "sw_interface_set_unnumbered_reply", + "sw_interface_clear_stats_reply", [ "u16", "_vl_msg_id" @@ -747,7 +628,7 @@ } ], [ - "sw_interface_clear_stats", + "sw_interface_tag_add_del", [ "u16", "_vl_msg_id" @@ -761,15 +642,24 @@ "context" ], [ + "u8", + "is_add" + ], + [ "u32", "sw_if_index" ], + [ + "u8", + "tag", + 64 + ], { - "crc": "0x529cb13f" + "crc": "0x14cc636c" } ], [ - "sw_interface_clear_stats_reply", + "sw_interface_tag_add_del_reply", [ "u16", "_vl_msg_id" @@ -787,7 +677,7 @@ } ], [ - "sw_interface_tag_add_del", + "sw_interface_set_mac_address", [ "u16", "_vl_msg_id" @@ -801,24 +691,20 @@ "context" ], [ - "u8", - "is_add" - ], - [ "u32", "sw_if_index" ], [ "u8", - "tag", - 64 + "mac_address", + 6 ], { - "crc": "0x14cc636c" + "crc": "0xeed5dfca" } ], [ - "sw_interface_tag_add_del_reply", + "sw_interface_set_mac_address_reply", [ "u16", "_vl_msg_id" @@ -836,7 +722,7 @@ } ], [ - "sw_interface_set_mac_address", + "sw_interface_get_mac_address", [ "u16", "_vl_msg_id" @@ -853,17 +739,12 @@ "u32", "sw_if_index" ], - [ - "u8", - "mac_address", - 6 - ], { - "crc": "0xeed5dfca" + "crc": "0x529cb13f" } ], [ - "sw_interface_set_mac_address_reply", + "sw_interface_get_mac_address_reply", [ "u16", "_vl_msg_id" @@ -876,8 +757,13 @@ "i32", "retval" ], + [ + "u8", + "mac_address", + 6 + ], { - "crc": "0xe8d4e804" + "crc": "0x8ea538d3" } ], [ @@ -1289,8 +1175,127 @@ { "crc": "0xe8d4e804" } + ], + [ + "collect_detailed_interface_stats", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u32", + "sw_if_index" + ], + [ + "u8", + "enable_disable" + ], + { + "crc": "0x69d24598" + } + ], + [ + "collect_detailed_interface_stats_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } ] ], + "vl_api_version": "0x6a38a271", + "unions": [], + "services": { + "create_subif": { + "reply": "create_subif_reply" + }, + "delete_subif": { + "reply": "delete_subif_reply" + }, + "sw_interface_tag_add_del": { + "reply": "sw_interface_tag_add_del_reply" + }, + "collect_detailed_interface_stats": { + "reply": "collect_detailed_interface_stats_reply" + }, + "sw_interface_dump": { + "reply": "sw_interface_details", + "stream": true + }, + "sw_interface_add_del_address": { + "reply": "sw_interface_add_del_address_reply" + }, + "sw_interface_get_table": { + "reply": "sw_interface_get_table_reply" + }, + "interface_name_renumber": { + "reply": "interface_name_renumber_reply" + }, + "create_loopback_instance": { + "reply": "create_loopback_instance_reply" + }, + "sw_interface_get_mac_address": { + "reply": "sw_interface_get_mac_address_reply" + }, + "want_interface_events": { + "reply": "want_interface_events_reply", + "events": [ + "sw_interface_event" + ] + }, + "create_loopback": { + "reply": "create_loopback_reply" + }, + "sw_interface_clear_stats": { + "reply": "sw_interface_clear_stats_reply" + }, + "hw_interface_set_mtu": { + "reply": "hw_interface_set_mtu_reply" + }, + "sw_interface_set_mac_address": { + "reply": "sw_interface_set_mac_address_reply" + }, + "sw_interface_set_table": { + "reply": "sw_interface_set_table_reply" + }, + "sw_interface_set_mtu": { + "reply": "sw_interface_set_mtu_reply" + }, + "sw_interface_set_flags": { + "reply": "sw_interface_set_flags_reply" + }, + "delete_loopback": { + "reply": "delete_loopback_reply" + }, + "sw_interface_set_rx_mode": { + "reply": "sw_interface_set_rx_mode_reply" + }, + "create_vlan_subif": { + "reply": "create_vlan_subif_reply" + }, + "sw_interface_set_unnumbered": { + "reply": "sw_interface_set_unnumbered_reply" + } + }, + "enums": [], "types": [ [ "vlib_counter", @@ -1322,14 +1327,62 @@ ], [ "u64", + "rx_unicast_packets" + ], + [ + "u64", + "rx_unicast_bytes" + ], + [ + "u64", + "rx_multicast_packets" + ], + [ + "u64", + "rx_multicast_bytes" + ], + [ + "u64", + "rx_broadcast_packets" + ], + [ + "u64", + "rx_broadcast_bytes" + ], + [ + "u64", "tx_packets" ], [ "u64", "tx_bytes" ], + [ + "u64", + "tx_unicast_packets" + ], + [ + "u64", + "tx_unicast_bytes" + ], + [ + "u64", + "tx_multicast_packets" + ], + [ + "u64", + "tx_multicast_bytes" + ], + [ + "u64", + "tx_broadcast_packets" + ], + [ + "u64", + "tx_broadcast_bytes" + ], { - "crc": "0x3217ba8e" + "crc": "0x20905ca4" } ], [ |