aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bin_api/interfaces/interfaces.ba.go
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-01-10 10:57:50 +0100
committerOndrej Fabry <ofabry@cisco.com>2019-01-10 11:05:35 +0100
commit08266e35878f198e2fa59fcfc9f0fc3a4b1dfbf5 (patch)
tree1269acfc3bf6fdd47414eb64da3ecad4865e37d6 /examples/bin_api/interfaces/interfaces.ba.go
parent3ef6f210edcf7dd753733d46ec3f2dd5dc795b61 (diff)
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 <ofabry@cisco.com>
Diffstat (limited to 'examples/bin_api/interfaces/interfaces.ba.go')
-rw-r--r--examples/bin_api/interfaces/interfaces.ba.go199
1 files changed, 0 insertions, 199 deletions
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':