From 08266e35878f198e2fa59fcfc9f0fc3a4b1dfbf5 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 10 Jan 2019 10:57:50 +0100 Subject: Add support for string types - strings are now generated as two fields for length and string itself - aliases are now sorted by name to prevent generating different code - dependencies are now managed by dep - binapi files are regenerated using VPP 19.01-rc0~622-g7b01e9e8 - old stats binary api has been deprecated and removed from VPP Change-Id: Ieb8515c73021339a45f407386f8e3d87dcf4469e Signed-off-by: Ondrej Fabry --- examples/bin_api/interfaces/interfaces.ba.go | 199 --------------------------- 1 file changed, 199 deletions(-) (limited to 'examples/bin_api/interfaces/interfaces.ba.go') diff --git a/examples/bin_api/interfaces/interfaces.ba.go b/examples/bin_api/interfaces/interfaces.ba.go index 68a8b44..2e90fbf 100644 --- a/examples/bin_api/interfaces/interfaces.ba.go +++ b/examples/bin_api/interfaces/interfaces.ba.go @@ -6,7 +6,6 @@ It contains following objects: 51 messages - 3 types 1 alias 25 services @@ -145,204 +144,6 @@ type Services interface { // type InterfaceIndex uint32 -/* Types */ - -// VlibCounter represents VPP binary API type 'vlib_counter': -// -// "vlib_counter", -// [ -// "u64", -// "packets" -// ], -// [ -// "u64", -// "bytes" -// ], -// { -// "crc": "0xce2325a2" -// } -// -type VlibCounter struct { - Packets uint64 - Bytes uint64 -} - -func (*VlibCounter) GetTypeName() string { - return "vlib_counter" -} -func (*VlibCounter) GetCrcString() string { - return "ce2325a2" -} - -// VnetCombinedCounter represents VPP binary API type 'vnet_combined_counter': -// -// "vnet_combined_counter", -// [ -// "u32", -// "sw_if_index" -// ], -// [ -// "u64", -// "rx_packets" -// ], -// [ -// "u64", -// "rx_bytes" -// ], -// [ -// "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": "0x20905ca4" -// } -// -type VnetCombinedCounter struct { - SwIfIndex uint32 - RxPackets uint64 - RxBytes uint64 - RxUnicastPackets uint64 - RxUnicastBytes uint64 - RxMulticastPackets uint64 - RxMulticastBytes uint64 - RxBroadcastPackets uint64 - RxBroadcastBytes uint64 - TxPackets uint64 - TxBytes uint64 - TxUnicastPackets uint64 - TxUnicastBytes uint64 - TxMulticastPackets uint64 - TxMulticastBytes uint64 - TxBroadcastPackets uint64 - TxBroadcastBytes uint64 -} - -func (*VnetCombinedCounter) GetTypeName() string { - return "vnet_combined_counter" -} -func (*VnetCombinedCounter) GetCrcString() string { - return "20905ca4" -} - -// VnetSimpleCounter represents VPP binary API type 'vnet_simple_counter': -// -// "vnet_simple_counter", -// [ -// "u32", -// "sw_if_index" -// ], -// [ -// "u64", -// "drop" -// ], -// [ -// "u64", -// "punt" -// ], -// [ -// "u64", -// "rx_ip4" -// ], -// [ -// "u64", -// "rx_ip6" -// ], -// [ -// "u64", -// "rx_no_buffer" -// ], -// [ -// "u64", -// "rx_miss" -// ], -// [ -// "u64", -// "rx_error" -// ], -// [ -// "u64", -// "tx_error" -// ], -// [ -// "u64", -// "rx_mpls" -// ], -// { -// "crc": "0x8bd65e2d" -// } -// -type VnetSimpleCounter struct { - SwIfIndex uint32 - Drop uint64 - Punt uint64 - RxIP4 uint64 - RxIP6 uint64 - RxNoBuffer uint64 - RxMiss uint64 - RxError uint64 - TxError uint64 - RxMpls uint64 -} - -func (*VnetSimpleCounter) GetTypeName() string { - return "vnet_simple_counter" -} -func (*VnetSimpleCounter) GetCrcString() string { - return "8bd65e2d" -} - /* Messages */ // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags': -- cgit 1.2.3-korg