aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bin_api/stats/stats.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bin_api/stats/stats.go')
-rw-r--r--examples/bin_api/stats/stats.go1560
1 files changed, 1560 insertions, 0 deletions
diff --git a/examples/bin_api/stats/stats.go b/examples/bin_api/stats/stats.go
new file mode 100644
index 0000000..0285698
--- /dev/null
+++ b/examples/bin_api/stats/stats.go
@@ -0,0 +1,1560 @@
+// Code generated by govpp binapi-generator DO NOT EDIT.
+// Package stats represents the VPP binary API of the 'stats' VPP module.
+// Generated from '../../bin_api/stats.api.json'
+package stats
+
+import "git.fd.io/govpp.git/api"
+
+// VlApiVersion contains version of the API.
+const VlAPIVersion = 0x50890812
+
+// IP4FibCounter represents the VPP binary API data type 'ip4_fib_counter'.
+// Generated from '../../bin_api/stats.api.json', line 776:
+//
+// "ip4_fib_counter",
+// [
+// "u32",
+// "address"
+// ],
+// [
+// "u8",
+// "address_length"
+// ],
+// [
+// "u64",
+// "packets"
+// ],
+// [
+// "u64",
+// "bytes"
+// ],
+// {
+// "crc": "0xa6ceb0c9"
+// }
+//
+type IP4FibCounter struct {
+ Address uint32
+ AddressLength uint8
+ Packets uint64
+ Bytes uint64
+}
+
+func (*IP4FibCounter) GetTypeName() string {
+ return "ip4_fib_counter"
+}
+func (*IP4FibCounter) GetCrcString() string {
+ return "a6ceb0c9"
+}
+
+// IP4MfibCounter represents the VPP binary API data type 'ip4_mfib_counter'.
+// Generated from '../../bin_api/stats.api.json', line 798:
+//
+// "ip4_mfib_counter",
+// [
+// "u8",
+// "source",
+// 4
+// ],
+// [
+// "u8",
+// "group",
+// 4
+// ],
+// [
+// "u8",
+// "group_length"
+// ],
+// [
+// "u64",
+// "packets"
+// ],
+// [
+// "u64",
+// "bytes"
+// ],
+// {
+// "crc": "0x2cee4721"
+// }
+//
+type IP4MfibCounter struct {
+ Source []byte `struc:"[4]byte"`
+ Group []byte `struc:"[4]byte"`
+ GroupLength uint8
+ Packets uint64
+ Bytes uint64
+}
+
+func (*IP4MfibCounter) GetTypeName() string {
+ return "ip4_mfib_counter"
+}
+func (*IP4MfibCounter) GetCrcString() string {
+ return "2cee4721"
+}
+
+// IP4NbrCounter represents the VPP binary API data type 'ip4_nbr_counter'.
+// Generated from '../../bin_api/stats.api.json', line 826:
+//
+// "ip4_nbr_counter",
+// [
+// "u32",
+// "address"
+// ],
+// [
+// "u8",
+// "link_type"
+// ],
+// [
+// "u64",
+// "packets"
+// ],
+// [
+// "u64",
+// "bytes"
+// ],
+// {
+// "crc": "0xb9f974d6"
+// }
+//
+type IP4NbrCounter struct {
+ Address uint32
+ LinkType uint8
+ Packets uint64
+ Bytes uint64
+}
+
+func (*IP4NbrCounter) GetTypeName() string {
+ return "ip4_nbr_counter"
+}
+func (*IP4NbrCounter) GetCrcString() string {
+ return "b9f974d6"
+}
+
+// IP6FibCounter represents the VPP binary API data type 'ip6_fib_counter'.
+// Generated from '../../bin_api/stats.api.json', line 848:
+//
+// "ip6_fib_counter",
+// [
+// "u64",
+// "address",
+// 2
+// ],
+// [
+// "u8",
+// "address_length"
+// ],
+// [
+// "u64",
+// "packets"
+// ],
+// [
+// "u64",
+// "bytes"
+// ],
+// {
+// "crc": "0xf1197efb"
+// }
+//
+type IP6FibCounter struct {
+ Address []uint64 `struc:"[2]uint64"`
+ AddressLength uint8
+ Packets uint64
+ Bytes uint64
+}
+
+func (*IP6FibCounter) GetTypeName() string {
+ return "ip6_fib_counter"
+}
+func (*IP6FibCounter) GetCrcString() string {
+ return "f1197efb"
+}
+
+// IP6MfibCounter represents the VPP binary API data type 'ip6_mfib_counter'.
+// Generated from '../../bin_api/stats.api.json', line 871:
+//
+// "ip6_mfib_counter",
+// [
+// "u8",
+// "source",
+// 16
+// ],
+// [
+// "u8",
+// "group",
+// 16
+// ],
+// [
+// "u8",
+// "group_length"
+// ],
+// [
+// "u64",
+// "packets"
+// ],
+// [
+// "u64",
+// "bytes"
+// ],
+// {
+// "crc": "0x90a9590e"
+// }
+//
+type IP6MfibCounter struct {
+ Source []byte `struc:"[16]byte"`
+ Group []byte `struc:"[16]byte"`
+ GroupLength uint8
+ Packets uint64
+ Bytes uint64
+}
+
+func (*IP6MfibCounter) GetTypeName() string {
+ return "ip6_mfib_counter"
+}
+func (*IP6MfibCounter) GetCrcString() string {
+ return "90a9590e"
+}
+
+// IP6NbrCounter represents the VPP binary API data type 'ip6_nbr_counter'.
+// Generated from '../../bin_api/stats.api.json', line 899:
+//
+// "ip6_nbr_counter",
+// [
+// "u64",
+// "address",
+// 2
+// ],
+// [
+// "u8",
+// "link_type"
+// ],
+// [
+// "u64",
+// "packets"
+// ],
+// [
+// "u64",
+// "bytes"
+// ],
+// {
+// "crc": "0x2d755474"
+// }
+//
+type IP6NbrCounter struct {
+ Address []uint64 `struc:"[2]uint64"`
+ LinkType uint8
+ Packets uint64
+ Bytes uint64
+}
+
+func (*IP6NbrCounter) GetTypeName() string {
+ return "ip6_nbr_counter"
+}
+func (*IP6NbrCounter) GetCrcString() string {
+ return "2d755474"
+}
+
+// WantStats represents the VPP binary API message 'want_stats'.
+// Generated from '../../bin_api/stats.api.json', line 68:
+//
+// "want_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantStats) GetMessageName() string {
+ return "want_stats"
+}
+func (*WantStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantStats() api.Message {
+ return &WantStats{}
+}
+
+// WantStatsReply represents the VPP binary API message 'want_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 94:
+//
+// "want_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantStatsReply struct {
+ Retval int32
+}
+
+func (*WantStatsReply) GetMessageName() string {
+ return "want_stats_reply"
+}
+func (*WantStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantStatsReply() api.Message {
+ return &WantStatsReply{}
+}
+
+// WantInterfaceSimpleStats represents the VPP binary API message 'want_interface_simple_stats'.
+// Generated from '../../bin_api/stats.api.json', line 112:
+//
+// "want_interface_simple_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantInterfaceSimpleStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantInterfaceSimpleStats) GetMessageName() string {
+ return "want_interface_simple_stats"
+}
+func (*WantInterfaceSimpleStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantInterfaceSimpleStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantInterfaceSimpleStats() api.Message {
+ return &WantInterfaceSimpleStats{}
+}
+
+// WantInterfaceSimpleStatsReply represents the VPP binary API message 'want_interface_simple_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 138:
+//
+// "want_interface_simple_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantInterfaceSimpleStatsReply struct {
+ Retval int32
+}
+
+func (*WantInterfaceSimpleStatsReply) GetMessageName() string {
+ return "want_interface_simple_stats_reply"
+}
+func (*WantInterfaceSimpleStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantInterfaceSimpleStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantInterfaceSimpleStatsReply() api.Message {
+ return &WantInterfaceSimpleStatsReply{}
+}
+
+// WantPerInterfaceSimpleStats represents the VPP binary API message 'want_per_interface_simple_stats'.
+// Generated from '../../bin_api/stats.api.json', line 156:
+//
+// "want_per_interface_simple_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// [
+// "u32",
+// "num"
+// ],
+// [
+// "u32",
+// "sw_ifs",
+// 0,
+// "num"
+// ],
+// {
+// "crc": "0x729d04f1"
+// }
+//
+type WantPerInterfaceSimpleStats struct {
+ EnableDisable uint32
+ Pid uint32
+ Num uint32 `struc:"sizeof=SwIfs"`
+ SwIfs []uint32
+}
+
+func (*WantPerInterfaceSimpleStats) GetMessageName() string {
+ return "want_per_interface_simple_stats"
+}
+func (*WantPerInterfaceSimpleStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantPerInterfaceSimpleStats) GetCrcString() string {
+ return "729d04f1"
+}
+func NewWantPerInterfaceSimpleStats() api.Message {
+ return &WantPerInterfaceSimpleStats{}
+}
+
+// WantPerInterfaceSimpleStatsReply represents the VPP binary API message 'want_per_interface_simple_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 192:
+//
+// "want_per_interface_simple_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantPerInterfaceSimpleStatsReply struct {
+ Retval int32
+}
+
+func (*WantPerInterfaceSimpleStatsReply) GetMessageName() string {
+ return "want_per_interface_simple_stats_reply"
+}
+func (*WantPerInterfaceSimpleStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantPerInterfaceSimpleStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantPerInterfaceSimpleStatsReply() api.Message {
+ return &WantPerInterfaceSimpleStatsReply{}
+}
+
+// WantInterfaceCombinedStats represents the VPP binary API message 'want_interface_combined_stats'.
+// Generated from '../../bin_api/stats.api.json', line 210:
+//
+// "want_interface_combined_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantInterfaceCombinedStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantInterfaceCombinedStats) GetMessageName() string {
+ return "want_interface_combined_stats"
+}
+func (*WantInterfaceCombinedStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantInterfaceCombinedStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantInterfaceCombinedStats() api.Message {
+ return &WantInterfaceCombinedStats{}
+}
+
+// WantInterfaceCombinedStatsReply represents the VPP binary API message 'want_interface_combined_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 236:
+//
+// "want_interface_combined_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantInterfaceCombinedStatsReply struct {
+ Retval int32
+}
+
+func (*WantInterfaceCombinedStatsReply) GetMessageName() string {
+ return "want_interface_combined_stats_reply"
+}
+func (*WantInterfaceCombinedStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantInterfaceCombinedStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantInterfaceCombinedStatsReply() api.Message {
+ return &WantInterfaceCombinedStatsReply{}
+}
+
+// WantPerInterfaceCombinedStats represents the VPP binary API message 'want_per_interface_combined_stats'.
+// Generated from '../../bin_api/stats.api.json', line 254:
+//
+// "want_per_interface_combined_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// [
+// "u32",
+// "num"
+// ],
+// [
+// "u32",
+// "sw_ifs",
+// 0,
+// "num"
+// ],
+// {
+// "crc": "0x729d04f1"
+// }
+//
+type WantPerInterfaceCombinedStats struct {
+ EnableDisable uint32
+ Pid uint32
+ Num uint32 `struc:"sizeof=SwIfs"`
+ SwIfs []uint32
+}
+
+func (*WantPerInterfaceCombinedStats) GetMessageName() string {
+ return "want_per_interface_combined_stats"
+}
+func (*WantPerInterfaceCombinedStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantPerInterfaceCombinedStats) GetCrcString() string {
+ return "729d04f1"
+}
+func NewWantPerInterfaceCombinedStats() api.Message {
+ return &WantPerInterfaceCombinedStats{}
+}
+
+// WantPerInterfaceCombinedStatsReply represents the VPP binary API message 'want_per_interface_combined_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 290:
+//
+// "want_per_interface_combined_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantPerInterfaceCombinedStatsReply struct {
+ Retval int32
+}
+
+func (*WantPerInterfaceCombinedStatsReply) GetMessageName() string {
+ return "want_per_interface_combined_stats_reply"
+}
+func (*WantPerInterfaceCombinedStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantPerInterfaceCombinedStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantPerInterfaceCombinedStatsReply() api.Message {
+ return &WantPerInterfaceCombinedStatsReply{}
+}
+
+// WantIP4FibStats represents the VPP binary API message 'want_ip4_fib_stats'.
+// Generated from '../../bin_api/stats.api.json', line 308:
+//
+// "want_ip4_fib_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantIP4FibStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantIP4FibStats) GetMessageName() string {
+ return "want_ip4_fib_stats"
+}
+func (*WantIP4FibStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantIP4FibStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantIP4FibStats() api.Message {
+ return &WantIP4FibStats{}
+}
+
+// WantIP4FibStatsReply represents the VPP binary API message 'want_ip4_fib_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 334:
+//
+// "want_ip4_fib_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantIP4FibStatsReply struct {
+ Retval int32
+}
+
+func (*WantIP4FibStatsReply) GetMessageName() string {
+ return "want_ip4_fib_stats_reply"
+}
+func (*WantIP4FibStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantIP4FibStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantIP4FibStatsReply() api.Message {
+ return &WantIP4FibStatsReply{}
+}
+
+// WantIP6FibStats represents the VPP binary API message 'want_ip6_fib_stats'.
+// Generated from '../../bin_api/stats.api.json', line 352:
+//
+// "want_ip6_fib_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantIP6FibStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantIP6FibStats) GetMessageName() string {
+ return "want_ip6_fib_stats"
+}
+func (*WantIP6FibStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantIP6FibStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantIP6FibStats() api.Message {
+ return &WantIP6FibStats{}
+}
+
+// WantIP6FibStatsReply represents the VPP binary API message 'want_ip6_fib_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 378:
+//
+// "want_ip6_fib_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantIP6FibStatsReply struct {
+ Retval int32
+}
+
+func (*WantIP6FibStatsReply) GetMessageName() string {
+ return "want_ip6_fib_stats_reply"
+}
+func (*WantIP6FibStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantIP6FibStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantIP6FibStatsReply() api.Message {
+ return &WantIP6FibStatsReply{}
+}
+
+// WantIP4MfibStats represents the VPP binary API message 'want_ip4_mfib_stats'.
+// Generated from '../../bin_api/stats.api.json', line 396:
+//
+// "want_ip4_mfib_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantIP4MfibStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantIP4MfibStats) GetMessageName() string {
+ return "want_ip4_mfib_stats"
+}
+func (*WantIP4MfibStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantIP4MfibStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantIP4MfibStats() api.Message {
+ return &WantIP4MfibStats{}
+}
+
+// WantIP4MfibStatsReply represents the VPP binary API message 'want_ip4_mfib_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 422:
+//
+// "want_ip4_mfib_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantIP4MfibStatsReply struct {
+ Retval int32
+}
+
+func (*WantIP4MfibStatsReply) GetMessageName() string {
+ return "want_ip4_mfib_stats_reply"
+}
+func (*WantIP4MfibStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantIP4MfibStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantIP4MfibStatsReply() api.Message {
+ return &WantIP4MfibStatsReply{}
+}
+
+// WantIP6MfibStats represents the VPP binary API message 'want_ip6_mfib_stats'.
+// Generated from '../../bin_api/stats.api.json', line 440:
+//
+// "want_ip6_mfib_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantIP6MfibStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantIP6MfibStats) GetMessageName() string {
+ return "want_ip6_mfib_stats"
+}
+func (*WantIP6MfibStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantIP6MfibStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantIP6MfibStats() api.Message {
+ return &WantIP6MfibStats{}
+}
+
+// WantIP6MfibStatsReply represents the VPP binary API message 'want_ip6_mfib_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 466:
+//
+// "want_ip6_mfib_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantIP6MfibStatsReply struct {
+ Retval int32
+}
+
+func (*WantIP6MfibStatsReply) GetMessageName() string {
+ return "want_ip6_mfib_stats_reply"
+}
+func (*WantIP6MfibStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantIP6MfibStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantIP6MfibStatsReply() api.Message {
+ return &WantIP6MfibStatsReply{}
+}
+
+// WantIP4NbrStats represents the VPP binary API message 'want_ip4_nbr_stats'.
+// Generated from '../../bin_api/stats.api.json', line 484:
+//
+// "want_ip4_nbr_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantIP4NbrStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantIP4NbrStats) GetMessageName() string {
+ return "want_ip4_nbr_stats"
+}
+func (*WantIP4NbrStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantIP4NbrStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantIP4NbrStats() api.Message {
+ return &WantIP4NbrStats{}
+}
+
+// WantIP4NbrStatsReply represents the VPP binary API message 'want_ip4_nbr_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 510:
+//
+// "want_ip4_nbr_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantIP4NbrStatsReply struct {
+ Retval int32
+}
+
+func (*WantIP4NbrStatsReply) GetMessageName() string {
+ return "want_ip4_nbr_stats_reply"
+}
+func (*WantIP4NbrStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantIP4NbrStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantIP4NbrStatsReply() api.Message {
+ return &WantIP4NbrStatsReply{}
+}
+
+// WantIP6NbrStats represents the VPP binary API message 'want_ip6_nbr_stats'.
+// Generated from '../../bin_api/stats.api.json', line 528:
+//
+// "want_ip6_nbr_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "enable_disable"
+// ],
+// [
+// "u32",
+// "pid"
+// ],
+// {
+// "crc": "0x476f5a08"
+// }
+//
+type WantIP6NbrStats struct {
+ EnableDisable uint32
+ Pid uint32
+}
+
+func (*WantIP6NbrStats) GetMessageName() string {
+ return "want_ip6_nbr_stats"
+}
+func (*WantIP6NbrStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*WantIP6NbrStats) GetCrcString() string {
+ return "476f5a08"
+}
+func NewWantIP6NbrStats() api.Message {
+ return &WantIP6NbrStats{}
+}
+
+// WantIP6NbrStatsReply represents the VPP binary API message 'want_ip6_nbr_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 554:
+//
+// "want_ip6_nbr_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
+//
+type WantIP6NbrStatsReply struct {
+ Retval int32
+}
+
+func (*WantIP6NbrStatsReply) GetMessageName() string {
+ return "want_ip6_nbr_stats_reply"
+}
+func (*WantIP6NbrStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*WantIP6NbrStatsReply) GetCrcString() string {
+ return "e8d4e804"
+}
+func NewWantIP6NbrStatsReply() api.Message {
+ return &WantIP6NbrStatsReply{}
+}
+
+// VnetIP4FibCounters represents the VPP binary API message 'vnet_ip4_fib_counters'.
+// Generated from '../../bin_api/stats.api.json', line 572:
+//
+// "vnet_ip4_fib_counters",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "vrf_id"
+// ],
+// [
+// "u32",
+// "count"
+// ],
+// [
+// "vl_api_ip4_fib_counter_t",
+// "c",
+// 0,
+// "count"
+// ],
+// {
+// "crc": "0x57e3feec"
+// }
+//
+type VnetIP4FibCounters struct {
+ VrfID uint32
+ Count uint32 `struc:"sizeof=C"`
+ C []IP4FibCounter
+}
+
+func (*VnetIP4FibCounters) GetMessageName() string {
+ return "vnet_ip4_fib_counters"
+}
+func (*VnetIP4FibCounters) GetMessageType() api.MessageType {
+ return api.OtherMessage
+}
+func (*VnetIP4FibCounters) GetCrcString() string {
+ return "57e3feec"
+}
+func NewVnetIP4FibCounters() api.Message {
+ return &VnetIP4FibCounters{}
+}
+
+// VnetIP4MfibCounters represents the VPP binary API message 'vnet_ip4_mfib_counters'.
+// Generated from '../../bin_api/stats.api.json', line 596:
+//
+// "vnet_ip4_mfib_counters",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "vrf_id"
+// ],
+// [
+// "u32",
+// "count"
+// ],
+// [
+// "vl_api_ip4_mfib_counter_t",
+// "c",
+// 0,
+// "count"
+// ],
+// {
+// "crc": "0x946eb588"
+// }
+//
+type VnetIP4MfibCounters struct {
+ VrfID uint32
+ Count uint32 `struc:"sizeof=C"`
+ C []IP4MfibCounter
+}
+
+func (*VnetIP4MfibCounters) GetMessageName() string {
+ return "vnet_ip4_mfib_counters"
+}
+func (*VnetIP4MfibCounters) GetMessageType() api.MessageType {
+ return api.OtherMessage
+}
+func (*VnetIP4MfibCounters) GetCrcString() string {
+ return "946eb588"
+}
+func NewVnetIP4MfibCounters() api.Message {
+ return &VnetIP4MfibCounters{}
+}
+
+// VnetIP4NbrCounters represents the VPP binary API message 'vnet_ip4_nbr_counters'.
+// Generated from '../../bin_api/stats.api.json', line 620:
+//
+// "vnet_ip4_nbr_counters",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "count"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// [
+// "u8",
+// "begin"
+// ],
+// [
+// "vl_api_ip4_nbr_counter_t",
+// "c",
+// 0,
+// "count"
+// ],
+// {
+// "crc": "0x214c4811"
+// }
+//
+type VnetIP4NbrCounters struct {
+ Count uint32 `struc:"sizeof=C"`
+ SwIfIndex uint32
+ Begin uint8
+ C []IP4NbrCounter
+}
+
+func (*VnetIP4NbrCounters) GetMessageName() string {
+ return "vnet_ip4_nbr_counters"
+}
+func (*VnetIP4NbrCounters) GetMessageType() api.MessageType {
+ return api.OtherMessage
+}
+func (*VnetIP4NbrCounters) GetCrcString() string {
+ return "214c4811"
+}
+func NewVnetIP4NbrCounters() api.Message {
+ return &VnetIP4NbrCounters{}
+}
+
+// VnetIP6FibCounters represents the VPP binary API message 'vnet_ip6_fib_counters'.
+// Generated from '../../bin_api/stats.api.json', line 648:
+//
+// "vnet_ip6_fib_counters",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "vrf_id"
+// ],
+// [
+// "u32",
+// "count"
+// ],
+// [
+// "vl_api_ip6_fib_counter_t",
+// "c",
+// 0,
+// "count"
+// ],
+// {
+// "crc": "0x13aed73d"
+// }
+//
+type VnetIP6FibCounters struct {
+ VrfID uint32
+ Count uint32 `struc:"sizeof=C"`
+ C []IP6FibCounter
+}
+
+func (*VnetIP6FibCounters) GetMessageName() string {
+ return "vnet_ip6_fib_counters"
+}
+func (*VnetIP6FibCounters) GetMessageType() api.MessageType {
+ return api.OtherMessage
+}
+func (*VnetIP6FibCounters) GetCrcString() string {
+ return "13aed73d"
+}
+func NewVnetIP6FibCounters() api.Message {
+ return &VnetIP6FibCounters{}
+}
+
+// VnetIP6MfibCounters represents the VPP binary API message 'vnet_ip6_mfib_counters'.
+// Generated from '../../bin_api/stats.api.json', line 672:
+//
+// "vnet_ip6_mfib_counters",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "vrf_id"
+// ],
+// [
+// "u32",
+// "count"
+// ],
+// [
+// "vl_api_ip6_mfib_counter_t",
+// "c",
+// 0,
+// "count"
+// ],
+// {
+// "crc": "0x65fe1ae3"
+// }
+//
+type VnetIP6MfibCounters struct {
+ VrfID uint32
+ Count uint32 `struc:"sizeof=C"`
+ C []IP6MfibCounter
+}
+
+func (*VnetIP6MfibCounters) GetMessageName() string {
+ return "vnet_ip6_mfib_counters"
+}
+func (*VnetIP6MfibCounters) GetMessageType() api.MessageType {
+ return api.OtherMessage
+}
+func (*VnetIP6MfibCounters) GetCrcString() string {
+ return "65fe1ae3"
+}
+func NewVnetIP6MfibCounters() api.Message {
+ return &VnetIP6MfibCounters{}
+}
+
+// VnetIP6NbrCounters represents the VPP binary API message 'vnet_ip6_nbr_counters'.
+// Generated from '../../bin_api/stats.api.json', line 696:
+//
+// "vnet_ip6_nbr_counters",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "count"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// [
+// "u8",
+// "begin"
+// ],
+// [
+// "vl_api_ip6_nbr_counter_t",
+// "c",
+// 0,
+// "count"
+// ],
+// {
+// "crc": "0x650161c0"
+// }
+//
+type VnetIP6NbrCounters struct {
+ Count uint32 `struc:"sizeof=C"`
+ SwIfIndex uint32
+ Begin uint8
+ C []IP6NbrCounter
+}
+
+func (*VnetIP6NbrCounters) GetMessageName() string {
+ return "vnet_ip6_nbr_counters"
+}
+func (*VnetIP6NbrCounters) GetMessageType() api.MessageType {
+ return api.OtherMessage
+}
+func (*VnetIP6NbrCounters) GetCrcString() string {
+ return "650161c0"
+}
+func NewVnetIP6NbrCounters() api.Message {
+ return &VnetIP6NbrCounters{}
+}
+
+// VnetGetSummaryStats represents the VPP binary API message 'vnet_get_summary_stats'.
+// Generated from '../../bin_api/stats.api.json', line 724:
+//
+// "vnet_get_summary_stats",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// {
+// "crc": "0x51077d14"
+// }
+//
+type VnetGetSummaryStats struct {
+}
+
+func (*VnetGetSummaryStats) GetMessageName() string {
+ return "vnet_get_summary_stats"
+}
+func (*VnetGetSummaryStats) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+func (*VnetGetSummaryStats) GetCrcString() string {
+ return "51077d14"
+}
+func NewVnetGetSummaryStats() api.Message {
+ return &VnetGetSummaryStats{}
+}
+
+// VnetGetSummaryStatsReply represents the VPP binary API message 'vnet_get_summary_stats_reply'.
+// Generated from '../../bin_api/stats.api.json', line 742:
+//
+// "vnet_get_summary_stats_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// [
+// "u64",
+// "total_pkts",
+// 2
+// ],
+// [
+// "u64",
+// "total_bytes",
+// 2
+// ],
+// [
+// "f64",
+// "vector_rate"
+// ],
+// {
+// "crc": "0x32b87c56"
+// }
+//
+type VnetGetSummaryStatsReply struct {
+ Retval int32
+ TotalPkts []uint64 `struc:"[2]uint64"`
+ TotalBytes []uint64 `struc:"[2]uint64"`
+ VectorRate float64
+}
+
+func (*VnetGetSummaryStatsReply) GetMessageName() string {
+ return "vnet_get_summary_stats_reply"
+}
+func (*VnetGetSummaryStatsReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+func (*VnetGetSummaryStatsReply) GetCrcString() string {
+ return "32b87c56"
+}
+func NewVnetGetSummaryStatsReply() api.Message {
+ return &VnetGetSummaryStatsReply{}
+}