1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/plugins/vxlan_gpe_ioam_export.api.json
7 // Package vxlan_gpe_ioam_export contains generated bindings for API file vxlan_gpe_ioam_export.api.
12 package vxlan_gpe_ioam_export
15 api "git.fd.io/govpp.git/api"
16 ip_types "git.fd.io/govpp.git/binapi/ip_types"
17 codec "git.fd.io/govpp.git/codec"
20 // This is a compile-time assertion to ensure that this generated file
21 // is compatible with the GoVPP api package it is being compiled against.
22 // A compilation error at this line likely means your copy of the
23 // GoVPP api package needs to be updated.
24 const _ = api.GoVppAPIPackageIsVersion2
27 APIFile = "vxlan_gpe_ioam_export"
29 VersionCrc = 0x56bd3b73
32 // VxlanGpeIoamExportEnableDisable defines message 'vxlan_gpe_ioam_export_enable_disable'.
33 type VxlanGpeIoamExportEnableDisable struct {
34 IsDisable bool `binapi:"bool,name=is_disable" json:"is_disable,omitempty"`
35 CollectorAddress ip_types.IP4Address `binapi:"ip4_address,name=collector_address" json:"collector_address,omitempty"`
36 SrcAddress ip_types.IP4Address `binapi:"ip4_address,name=src_address" json:"src_address,omitempty"`
39 func (m *VxlanGpeIoamExportEnableDisable) Reset() { *m = VxlanGpeIoamExportEnableDisable{} }
40 func (*VxlanGpeIoamExportEnableDisable) GetMessageName() string {
41 return "vxlan_gpe_ioam_export_enable_disable"
43 func (*VxlanGpeIoamExportEnableDisable) GetCrcString() string { return "e4d4ebfa" }
44 func (*VxlanGpeIoamExportEnableDisable) GetMessageType() api.MessageType {
45 return api.RequestMessage
48 func (m *VxlanGpeIoamExportEnableDisable) Size() int {
53 size += 1 // m.IsDisable
54 size += 1 * 4 // m.CollectorAddress
55 size += 1 * 4 // m.SrcAddress
58 func (m *VxlanGpeIoamExportEnableDisable) Marshal(b []byte) ([]byte, error) {
61 buf = codec.NewBuffer(make([]byte, m.Size()))
63 buf = codec.NewBuffer(b)
65 buf.EncodeBool(m.IsDisable)
66 buf.EncodeBytes(m.CollectorAddress[:], 4)
67 buf.EncodeBytes(m.SrcAddress[:], 4)
68 return buf.Bytes(), nil
70 func (m *VxlanGpeIoamExportEnableDisable) Unmarshal(b []byte) error {
71 buf := codec.NewBuffer(b)
72 m.IsDisable = buf.DecodeBool()
73 copy(m.CollectorAddress[:], buf.DecodeBytes(4))
74 copy(m.SrcAddress[:], buf.DecodeBytes(4))
78 // VxlanGpeIoamExportEnableDisableReply defines message 'vxlan_gpe_ioam_export_enable_disable_reply'.
79 type VxlanGpeIoamExportEnableDisableReply struct {
80 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
83 func (m *VxlanGpeIoamExportEnableDisableReply) Reset() { *m = VxlanGpeIoamExportEnableDisableReply{} }
84 func (*VxlanGpeIoamExportEnableDisableReply) GetMessageName() string {
85 return "vxlan_gpe_ioam_export_enable_disable_reply"
87 func (*VxlanGpeIoamExportEnableDisableReply) GetCrcString() string { return "e8d4e804" }
88 func (*VxlanGpeIoamExportEnableDisableReply) GetMessageType() api.MessageType {
89 return api.ReplyMessage
92 func (m *VxlanGpeIoamExportEnableDisableReply) Size() int {
100 func (m *VxlanGpeIoamExportEnableDisableReply) Marshal(b []byte) ([]byte, error) {
101 var buf *codec.Buffer
103 buf = codec.NewBuffer(make([]byte, m.Size()))
105 buf = codec.NewBuffer(b)
107 buf.EncodeUint32(uint32(m.Retval))
108 return buf.Bytes(), nil
110 func (m *VxlanGpeIoamExportEnableDisableReply) Unmarshal(b []byte) error {
111 buf := codec.NewBuffer(b)
112 m.Retval = int32(buf.DecodeUint32())
116 func init() { file_vxlan_gpe_ioam_export_binapi_init() }
117 func file_vxlan_gpe_ioam_export_binapi_init() {
118 api.RegisterMessage((*VxlanGpeIoamExportEnableDisable)(nil), "vxlan_gpe_ioam_export_enable_disable_e4d4ebfa")
119 api.RegisterMessage((*VxlanGpeIoamExportEnableDisableReply)(nil), "vxlan_gpe_ioam_export_enable_disable_reply_e8d4e804")
122 // Messages returns list of all messages in this module.
123 func AllMessages() []api.Message {
124 return []api.Message{
125 (*VxlanGpeIoamExportEnableDisable)(nil),
126 (*VxlanGpeIoamExportEnableDisableReply)(nil),