1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
6 // Package vxlan_gpe_ioam_export contains generated bindings for API file vxlan_gpe_ioam_export.api.
11 package vxlan_gpe_ioam_export
14 api "git.fd.io/govpp.git/api"
15 ip_types "git.fd.io/govpp.git/binapi/ip_types"
16 codec "git.fd.io/govpp.git/codec"
19 // This is a compile-time assertion to ensure that this generated file
20 // is compatible with the GoVPP api package it is being compiled against.
21 // A compilation error at this line likely means your copy of the
22 // GoVPP api package needs to be updated.
23 const _ = api.GoVppAPIPackageIsVersion2
26 APIFile = "vxlan_gpe_ioam_export"
28 VersionCrc = 0x56bd3b73
31 // VxlanGpeIoamExportEnableDisable defines message 'vxlan_gpe_ioam_export_enable_disable'.
32 type VxlanGpeIoamExportEnableDisable struct {
33 IsDisable bool `binapi:"bool,name=is_disable" json:"is_disable,omitempty"`
34 CollectorAddress ip_types.IP4Address `binapi:"ip4_address,name=collector_address" json:"collector_address,omitempty"`
35 SrcAddress ip_types.IP4Address `binapi:"ip4_address,name=src_address" json:"src_address,omitempty"`
38 func (m *VxlanGpeIoamExportEnableDisable) Reset() { *m = VxlanGpeIoamExportEnableDisable{} }
39 func (*VxlanGpeIoamExportEnableDisable) GetMessageName() string {
40 return "vxlan_gpe_ioam_export_enable_disable"
42 func (*VxlanGpeIoamExportEnableDisable) GetCrcString() string { return "e4d4ebfa" }
43 func (*VxlanGpeIoamExportEnableDisable) GetMessageType() api.MessageType {
44 return api.RequestMessage
47 func (m *VxlanGpeIoamExportEnableDisable) Size() (size int) {
51 size += 1 // m.IsDisable
52 size += 1 * 4 // m.CollectorAddress
53 size += 1 * 4 // m.SrcAddress
56 func (m *VxlanGpeIoamExportEnableDisable) Marshal(b []byte) ([]byte, error) {
58 b = make([]byte, m.Size())
60 buf := codec.NewBuffer(b)
61 buf.EncodeBool(m.IsDisable)
62 buf.EncodeBytes(m.CollectorAddress[:], 4)
63 buf.EncodeBytes(m.SrcAddress[:], 4)
64 return buf.Bytes(), nil
66 func (m *VxlanGpeIoamExportEnableDisable) Unmarshal(b []byte) error {
67 buf := codec.NewBuffer(b)
68 m.IsDisable = buf.DecodeBool()
69 copy(m.CollectorAddress[:], buf.DecodeBytes(4))
70 copy(m.SrcAddress[:], buf.DecodeBytes(4))
74 // VxlanGpeIoamExportEnableDisableReply defines message 'vxlan_gpe_ioam_export_enable_disable_reply'.
75 type VxlanGpeIoamExportEnableDisableReply struct {
76 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
79 func (m *VxlanGpeIoamExportEnableDisableReply) Reset() { *m = VxlanGpeIoamExportEnableDisableReply{} }
80 func (*VxlanGpeIoamExportEnableDisableReply) GetMessageName() string {
81 return "vxlan_gpe_ioam_export_enable_disable_reply"
83 func (*VxlanGpeIoamExportEnableDisableReply) GetCrcString() string { return "e8d4e804" }
84 func (*VxlanGpeIoamExportEnableDisableReply) GetMessageType() api.MessageType {
85 return api.ReplyMessage
88 func (m *VxlanGpeIoamExportEnableDisableReply) Size() (size int) {
95 func (m *VxlanGpeIoamExportEnableDisableReply) Marshal(b []byte) ([]byte, error) {
97 b = make([]byte, m.Size())
99 buf := codec.NewBuffer(b)
100 buf.EncodeInt32(m.Retval)
101 return buf.Bytes(), nil
103 func (m *VxlanGpeIoamExportEnableDisableReply) Unmarshal(b []byte) error {
104 buf := codec.NewBuffer(b)
105 m.Retval = buf.DecodeInt32()
109 func init() { file_vxlan_gpe_ioam_export_binapi_init() }
110 func file_vxlan_gpe_ioam_export_binapi_init() {
111 api.RegisterMessage((*VxlanGpeIoamExportEnableDisable)(nil), "vxlan_gpe_ioam_export_enable_disable_e4d4ebfa")
112 api.RegisterMessage((*VxlanGpeIoamExportEnableDisableReply)(nil), "vxlan_gpe_ioam_export_enable_disable_reply_e8d4e804")
115 // Messages returns list of all messages in this module.
116 func AllMessages() []api.Message {
117 return []api.Message{
118 (*VxlanGpeIoamExportEnableDisable)(nil),
119 (*VxlanGpeIoamExportEnableDisableReply)(nil),