1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.6.0-dev
5 // source: /usr/share/vpp/api/plugins/ioam_vxlan_gpe.api.json
7 // Package ioam_vxlan_gpe contains generated bindings for API file ioam_vxlan_gpe.api.
12 package ioam_vxlan_gpe
15 api "go.fd.io/govpp/api"
16 ip_types "go.fd.io/govpp/binapi/ip_types"
17 codec "go.fd.io/govpp/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 = "ioam_vxlan_gpe"
29 VersionCrc = 0xb49eb0b9
32 // VxlanGpeIoamDisable defines message 'vxlan_gpe_ioam_disable'.
33 type VxlanGpeIoamDisable struct {
34 ID uint16 `binapi:"u16,name=id" json:"id,omitempty"`
37 func (m *VxlanGpeIoamDisable) Reset() { *m = VxlanGpeIoamDisable{} }
38 func (*VxlanGpeIoamDisable) GetMessageName() string { return "vxlan_gpe_ioam_disable" }
39 func (*VxlanGpeIoamDisable) GetCrcString() string { return "6b16a45e" }
40 func (*VxlanGpeIoamDisable) GetMessageType() api.MessageType {
41 return api.RequestMessage
44 func (m *VxlanGpeIoamDisable) Size() (size int) {
51 func (m *VxlanGpeIoamDisable) Marshal(b []byte) ([]byte, error) {
53 b = make([]byte, m.Size())
55 buf := codec.NewBuffer(b)
56 buf.EncodeUint16(m.ID)
57 return buf.Bytes(), nil
59 func (m *VxlanGpeIoamDisable) Unmarshal(b []byte) error {
60 buf := codec.NewBuffer(b)
61 m.ID = buf.DecodeUint16()
65 // VxlanGpeIoamDisableReply defines message 'vxlan_gpe_ioam_disable_reply'.
66 type VxlanGpeIoamDisableReply struct {
67 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
70 func (m *VxlanGpeIoamDisableReply) Reset() { *m = VxlanGpeIoamDisableReply{} }
71 func (*VxlanGpeIoamDisableReply) GetMessageName() string { return "vxlan_gpe_ioam_disable_reply" }
72 func (*VxlanGpeIoamDisableReply) GetCrcString() string { return "e8d4e804" }
73 func (*VxlanGpeIoamDisableReply) GetMessageType() api.MessageType {
74 return api.ReplyMessage
77 func (m *VxlanGpeIoamDisableReply) Size() (size int) {
84 func (m *VxlanGpeIoamDisableReply) Marshal(b []byte) ([]byte, error) {
86 b = make([]byte, m.Size())
88 buf := codec.NewBuffer(b)
89 buf.EncodeInt32(m.Retval)
90 return buf.Bytes(), nil
92 func (m *VxlanGpeIoamDisableReply) Unmarshal(b []byte) error {
93 buf := codec.NewBuffer(b)
94 m.Retval = buf.DecodeInt32()
98 // VxlanGpeIoamEnable defines message 'vxlan_gpe_ioam_enable'.
99 type VxlanGpeIoamEnable struct {
100 ID uint16 `binapi:"u16,name=id" json:"id,omitempty"`
101 TracePpc uint8 `binapi:"u8,name=trace_ppc" json:"trace_ppc,omitempty"`
102 PowEnable bool `binapi:"bool,name=pow_enable" json:"pow_enable,omitempty"`
103 TraceEnable bool `binapi:"bool,name=trace_enable" json:"trace_enable,omitempty"`
106 func (m *VxlanGpeIoamEnable) Reset() { *m = VxlanGpeIoamEnable{} }
107 func (*VxlanGpeIoamEnable) GetMessageName() string { return "vxlan_gpe_ioam_enable" }
108 func (*VxlanGpeIoamEnable) GetCrcString() string { return "2481bef7" }
109 func (*VxlanGpeIoamEnable) GetMessageType() api.MessageType {
110 return api.RequestMessage
113 func (m *VxlanGpeIoamEnable) Size() (size int) {
118 size += 1 // m.TracePpc
119 size += 1 // m.PowEnable
120 size += 1 // m.TraceEnable
123 func (m *VxlanGpeIoamEnable) Marshal(b []byte) ([]byte, error) {
125 b = make([]byte, m.Size())
127 buf := codec.NewBuffer(b)
128 buf.EncodeUint16(m.ID)
129 buf.EncodeUint8(m.TracePpc)
130 buf.EncodeBool(m.PowEnable)
131 buf.EncodeBool(m.TraceEnable)
132 return buf.Bytes(), nil
134 func (m *VxlanGpeIoamEnable) Unmarshal(b []byte) error {
135 buf := codec.NewBuffer(b)
136 m.ID = buf.DecodeUint16()
137 m.TracePpc = buf.DecodeUint8()
138 m.PowEnable = buf.DecodeBool()
139 m.TraceEnable = buf.DecodeBool()
143 // VxlanGpeIoamEnableReply defines message 'vxlan_gpe_ioam_enable_reply'.
144 type VxlanGpeIoamEnableReply struct {
145 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
148 func (m *VxlanGpeIoamEnableReply) Reset() { *m = VxlanGpeIoamEnableReply{} }
149 func (*VxlanGpeIoamEnableReply) GetMessageName() string { return "vxlan_gpe_ioam_enable_reply" }
150 func (*VxlanGpeIoamEnableReply) GetCrcString() string { return "e8d4e804" }
151 func (*VxlanGpeIoamEnableReply) GetMessageType() api.MessageType {
152 return api.ReplyMessage
155 func (m *VxlanGpeIoamEnableReply) Size() (size int) {
159 size += 4 // m.Retval
162 func (m *VxlanGpeIoamEnableReply) Marshal(b []byte) ([]byte, error) {
164 b = make([]byte, m.Size())
166 buf := codec.NewBuffer(b)
167 buf.EncodeInt32(m.Retval)
168 return buf.Bytes(), nil
170 func (m *VxlanGpeIoamEnableReply) Unmarshal(b []byte) error {
171 buf := codec.NewBuffer(b)
172 m.Retval = buf.DecodeInt32()
176 // VxlanGpeIoamTransitDisable defines message 'vxlan_gpe_ioam_transit_disable'.
177 type VxlanGpeIoamTransitDisable struct {
178 OuterFibIndex uint32 `binapi:"u32,name=outer_fib_index" json:"outer_fib_index,omitempty"`
179 DstAddr ip_types.Address `binapi:"address,name=dst_addr" json:"dst_addr,omitempty"`
182 func (m *VxlanGpeIoamTransitDisable) Reset() { *m = VxlanGpeIoamTransitDisable{} }
183 func (*VxlanGpeIoamTransitDisable) GetMessageName() string { return "vxlan_gpe_ioam_transit_disable" }
184 func (*VxlanGpeIoamTransitDisable) GetCrcString() string { return "3d3ec657" }
185 func (*VxlanGpeIoamTransitDisable) GetMessageType() api.MessageType {
186 return api.RequestMessage
189 func (m *VxlanGpeIoamTransitDisable) Size() (size int) {
193 size += 4 // m.OuterFibIndex
194 size += 1 // m.DstAddr.Af
195 size += 1 * 16 // m.DstAddr.Un
198 func (m *VxlanGpeIoamTransitDisable) Marshal(b []byte) ([]byte, error) {
200 b = make([]byte, m.Size())
202 buf := codec.NewBuffer(b)
203 buf.EncodeUint32(m.OuterFibIndex)
204 buf.EncodeUint8(uint8(m.DstAddr.Af))
205 buf.EncodeBytes(m.DstAddr.Un.XXX_UnionData[:], 16)
206 return buf.Bytes(), nil
208 func (m *VxlanGpeIoamTransitDisable) Unmarshal(b []byte) error {
209 buf := codec.NewBuffer(b)
210 m.OuterFibIndex = buf.DecodeUint32()
211 m.DstAddr.Af = ip_types.AddressFamily(buf.DecodeUint8())
212 copy(m.DstAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16))
216 // VxlanGpeIoamTransitDisableReply defines message 'vxlan_gpe_ioam_transit_disable_reply'.
217 type VxlanGpeIoamTransitDisableReply struct {
218 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
221 func (m *VxlanGpeIoamTransitDisableReply) Reset() { *m = VxlanGpeIoamTransitDisableReply{} }
222 func (*VxlanGpeIoamTransitDisableReply) GetMessageName() string {
223 return "vxlan_gpe_ioam_transit_disable_reply"
225 func (*VxlanGpeIoamTransitDisableReply) GetCrcString() string { return "e8d4e804" }
226 func (*VxlanGpeIoamTransitDisableReply) GetMessageType() api.MessageType {
227 return api.ReplyMessage
230 func (m *VxlanGpeIoamTransitDisableReply) Size() (size int) {
234 size += 4 // m.Retval
237 func (m *VxlanGpeIoamTransitDisableReply) Marshal(b []byte) ([]byte, error) {
239 b = make([]byte, m.Size())
241 buf := codec.NewBuffer(b)
242 buf.EncodeInt32(m.Retval)
243 return buf.Bytes(), nil
245 func (m *VxlanGpeIoamTransitDisableReply) Unmarshal(b []byte) error {
246 buf := codec.NewBuffer(b)
247 m.Retval = buf.DecodeInt32()
251 // VxlanGpeIoamTransitEnable defines message 'vxlan_gpe_ioam_transit_enable'.
252 type VxlanGpeIoamTransitEnable struct {
253 OuterFibIndex uint32 `binapi:"u32,name=outer_fib_index" json:"outer_fib_index,omitempty"`
254 DstAddr ip_types.Address `binapi:"address,name=dst_addr" json:"dst_addr,omitempty"`
257 func (m *VxlanGpeIoamTransitEnable) Reset() { *m = VxlanGpeIoamTransitEnable{} }
258 func (*VxlanGpeIoamTransitEnable) GetMessageName() string { return "vxlan_gpe_ioam_transit_enable" }
259 func (*VxlanGpeIoamTransitEnable) GetCrcString() string { return "3d3ec657" }
260 func (*VxlanGpeIoamTransitEnable) GetMessageType() api.MessageType {
261 return api.RequestMessage
264 func (m *VxlanGpeIoamTransitEnable) Size() (size int) {
268 size += 4 // m.OuterFibIndex
269 size += 1 // m.DstAddr.Af
270 size += 1 * 16 // m.DstAddr.Un
273 func (m *VxlanGpeIoamTransitEnable) Marshal(b []byte) ([]byte, error) {
275 b = make([]byte, m.Size())
277 buf := codec.NewBuffer(b)
278 buf.EncodeUint32(m.OuterFibIndex)
279 buf.EncodeUint8(uint8(m.DstAddr.Af))
280 buf.EncodeBytes(m.DstAddr.Un.XXX_UnionData[:], 16)
281 return buf.Bytes(), nil
283 func (m *VxlanGpeIoamTransitEnable) Unmarshal(b []byte) error {
284 buf := codec.NewBuffer(b)
285 m.OuterFibIndex = buf.DecodeUint32()
286 m.DstAddr.Af = ip_types.AddressFamily(buf.DecodeUint8())
287 copy(m.DstAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16))
291 // VxlanGpeIoamTransitEnableReply defines message 'vxlan_gpe_ioam_transit_enable_reply'.
292 type VxlanGpeIoamTransitEnableReply struct {
293 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
296 func (m *VxlanGpeIoamTransitEnableReply) Reset() { *m = VxlanGpeIoamTransitEnableReply{} }
297 func (*VxlanGpeIoamTransitEnableReply) GetMessageName() string {
298 return "vxlan_gpe_ioam_transit_enable_reply"
300 func (*VxlanGpeIoamTransitEnableReply) GetCrcString() string { return "e8d4e804" }
301 func (*VxlanGpeIoamTransitEnableReply) GetMessageType() api.MessageType {
302 return api.ReplyMessage
305 func (m *VxlanGpeIoamTransitEnableReply) Size() (size int) {
309 size += 4 // m.Retval
312 func (m *VxlanGpeIoamTransitEnableReply) Marshal(b []byte) ([]byte, error) {
314 b = make([]byte, m.Size())
316 buf := codec.NewBuffer(b)
317 buf.EncodeInt32(m.Retval)
318 return buf.Bytes(), nil
320 func (m *VxlanGpeIoamTransitEnableReply) Unmarshal(b []byte) error {
321 buf := codec.NewBuffer(b)
322 m.Retval = buf.DecodeInt32()
326 // VxlanGpeIoamVniDisable defines message 'vxlan_gpe_ioam_vni_disable'.
327 type VxlanGpeIoamVniDisable struct {
328 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
329 Local ip_types.Address `binapi:"address,name=local" json:"local,omitempty"`
330 Remote ip_types.Address `binapi:"address,name=remote" json:"remote,omitempty"`
333 func (m *VxlanGpeIoamVniDisable) Reset() { *m = VxlanGpeIoamVniDisable{} }
334 func (*VxlanGpeIoamVniDisable) GetMessageName() string { return "vxlan_gpe_ioam_vni_disable" }
335 func (*VxlanGpeIoamVniDisable) GetCrcString() string { return "0fbb5fb1" }
336 func (*VxlanGpeIoamVniDisable) GetMessageType() api.MessageType {
337 return api.RequestMessage
340 func (m *VxlanGpeIoamVniDisable) Size() (size int) {
345 size += 1 // m.Local.Af
346 size += 1 * 16 // m.Local.Un
347 size += 1 // m.Remote.Af
348 size += 1 * 16 // m.Remote.Un
351 func (m *VxlanGpeIoamVniDisable) Marshal(b []byte) ([]byte, error) {
353 b = make([]byte, m.Size())
355 buf := codec.NewBuffer(b)
356 buf.EncodeUint32(m.Vni)
357 buf.EncodeUint8(uint8(m.Local.Af))
358 buf.EncodeBytes(m.Local.Un.XXX_UnionData[:], 16)
359 buf.EncodeUint8(uint8(m.Remote.Af))
360 buf.EncodeBytes(m.Remote.Un.XXX_UnionData[:], 16)
361 return buf.Bytes(), nil
363 func (m *VxlanGpeIoamVniDisable) Unmarshal(b []byte) error {
364 buf := codec.NewBuffer(b)
365 m.Vni = buf.DecodeUint32()
366 m.Local.Af = ip_types.AddressFamily(buf.DecodeUint8())
367 copy(m.Local.Un.XXX_UnionData[:], buf.DecodeBytes(16))
368 m.Remote.Af = ip_types.AddressFamily(buf.DecodeUint8())
369 copy(m.Remote.Un.XXX_UnionData[:], buf.DecodeBytes(16))
373 // VxlanGpeIoamVniDisableReply defines message 'vxlan_gpe_ioam_vni_disable_reply'.
374 type VxlanGpeIoamVniDisableReply struct {
375 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
378 func (m *VxlanGpeIoamVniDisableReply) Reset() { *m = VxlanGpeIoamVniDisableReply{} }
379 func (*VxlanGpeIoamVniDisableReply) GetMessageName() string {
380 return "vxlan_gpe_ioam_vni_disable_reply"
382 func (*VxlanGpeIoamVniDisableReply) GetCrcString() string { return "e8d4e804" }
383 func (*VxlanGpeIoamVniDisableReply) GetMessageType() api.MessageType {
384 return api.ReplyMessage
387 func (m *VxlanGpeIoamVniDisableReply) Size() (size int) {
391 size += 4 // m.Retval
394 func (m *VxlanGpeIoamVniDisableReply) Marshal(b []byte) ([]byte, error) {
396 b = make([]byte, m.Size())
398 buf := codec.NewBuffer(b)
399 buf.EncodeInt32(m.Retval)
400 return buf.Bytes(), nil
402 func (m *VxlanGpeIoamVniDisableReply) Unmarshal(b []byte) error {
403 buf := codec.NewBuffer(b)
404 m.Retval = buf.DecodeInt32()
408 // VxlanGpeIoamVniEnable defines message 'vxlan_gpe_ioam_vni_enable'.
409 type VxlanGpeIoamVniEnable struct {
410 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
411 Local ip_types.Address `binapi:"address,name=local" json:"local,omitempty"`
412 Remote ip_types.Address `binapi:"address,name=remote" json:"remote,omitempty"`
415 func (m *VxlanGpeIoamVniEnable) Reset() { *m = VxlanGpeIoamVniEnable{} }
416 func (*VxlanGpeIoamVniEnable) GetMessageName() string { return "vxlan_gpe_ioam_vni_enable" }
417 func (*VxlanGpeIoamVniEnable) GetCrcString() string { return "0fbb5fb1" }
418 func (*VxlanGpeIoamVniEnable) GetMessageType() api.MessageType {
419 return api.RequestMessage
422 func (m *VxlanGpeIoamVniEnable) Size() (size int) {
427 size += 1 // m.Local.Af
428 size += 1 * 16 // m.Local.Un
429 size += 1 // m.Remote.Af
430 size += 1 * 16 // m.Remote.Un
433 func (m *VxlanGpeIoamVniEnable) Marshal(b []byte) ([]byte, error) {
435 b = make([]byte, m.Size())
437 buf := codec.NewBuffer(b)
438 buf.EncodeUint32(m.Vni)
439 buf.EncodeUint8(uint8(m.Local.Af))
440 buf.EncodeBytes(m.Local.Un.XXX_UnionData[:], 16)
441 buf.EncodeUint8(uint8(m.Remote.Af))
442 buf.EncodeBytes(m.Remote.Un.XXX_UnionData[:], 16)
443 return buf.Bytes(), nil
445 func (m *VxlanGpeIoamVniEnable) Unmarshal(b []byte) error {
446 buf := codec.NewBuffer(b)
447 m.Vni = buf.DecodeUint32()
448 m.Local.Af = ip_types.AddressFamily(buf.DecodeUint8())
449 copy(m.Local.Un.XXX_UnionData[:], buf.DecodeBytes(16))
450 m.Remote.Af = ip_types.AddressFamily(buf.DecodeUint8())
451 copy(m.Remote.Un.XXX_UnionData[:], buf.DecodeBytes(16))
455 // VxlanGpeIoamVniEnableReply defines message 'vxlan_gpe_ioam_vni_enable_reply'.
456 type VxlanGpeIoamVniEnableReply struct {
457 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
460 func (m *VxlanGpeIoamVniEnableReply) Reset() { *m = VxlanGpeIoamVniEnableReply{} }
461 func (*VxlanGpeIoamVniEnableReply) GetMessageName() string { return "vxlan_gpe_ioam_vni_enable_reply" }
462 func (*VxlanGpeIoamVniEnableReply) GetCrcString() string { return "e8d4e804" }
463 func (*VxlanGpeIoamVniEnableReply) GetMessageType() api.MessageType {
464 return api.ReplyMessage
467 func (m *VxlanGpeIoamVniEnableReply) Size() (size int) {
471 size += 4 // m.Retval
474 func (m *VxlanGpeIoamVniEnableReply) Marshal(b []byte) ([]byte, error) {
476 b = make([]byte, m.Size())
478 buf := codec.NewBuffer(b)
479 buf.EncodeInt32(m.Retval)
480 return buf.Bytes(), nil
482 func (m *VxlanGpeIoamVniEnableReply) Unmarshal(b []byte) error {
483 buf := codec.NewBuffer(b)
484 m.Retval = buf.DecodeInt32()
488 func init() { file_ioam_vxlan_gpe_binapi_init() }
489 func file_ioam_vxlan_gpe_binapi_init() {
490 api.RegisterMessage((*VxlanGpeIoamDisable)(nil), "vxlan_gpe_ioam_disable_6b16a45e")
491 api.RegisterMessage((*VxlanGpeIoamDisableReply)(nil), "vxlan_gpe_ioam_disable_reply_e8d4e804")
492 api.RegisterMessage((*VxlanGpeIoamEnable)(nil), "vxlan_gpe_ioam_enable_2481bef7")
493 api.RegisterMessage((*VxlanGpeIoamEnableReply)(nil), "vxlan_gpe_ioam_enable_reply_e8d4e804")
494 api.RegisterMessage((*VxlanGpeIoamTransitDisable)(nil), "vxlan_gpe_ioam_transit_disable_3d3ec657")
495 api.RegisterMessage((*VxlanGpeIoamTransitDisableReply)(nil), "vxlan_gpe_ioam_transit_disable_reply_e8d4e804")
496 api.RegisterMessage((*VxlanGpeIoamTransitEnable)(nil), "vxlan_gpe_ioam_transit_enable_3d3ec657")
497 api.RegisterMessage((*VxlanGpeIoamTransitEnableReply)(nil), "vxlan_gpe_ioam_transit_enable_reply_e8d4e804")
498 api.RegisterMessage((*VxlanGpeIoamVniDisable)(nil), "vxlan_gpe_ioam_vni_disable_0fbb5fb1")
499 api.RegisterMessage((*VxlanGpeIoamVniDisableReply)(nil), "vxlan_gpe_ioam_vni_disable_reply_e8d4e804")
500 api.RegisterMessage((*VxlanGpeIoamVniEnable)(nil), "vxlan_gpe_ioam_vni_enable_0fbb5fb1")
501 api.RegisterMessage((*VxlanGpeIoamVniEnableReply)(nil), "vxlan_gpe_ioam_vni_enable_reply_e8d4e804")
504 // Messages returns list of all messages in this module.
505 func AllMessages() []api.Message {
506 return []api.Message{
507 (*VxlanGpeIoamDisable)(nil),
508 (*VxlanGpeIoamDisableReply)(nil),
509 (*VxlanGpeIoamEnable)(nil),
510 (*VxlanGpeIoamEnableReply)(nil),
511 (*VxlanGpeIoamTransitDisable)(nil),
512 (*VxlanGpeIoamTransitDisableReply)(nil),
513 (*VxlanGpeIoamTransitEnable)(nil),
514 (*VxlanGpeIoamTransitEnableReply)(nil),
515 (*VxlanGpeIoamVniDisable)(nil),
516 (*VxlanGpeIoamVniDisableReply)(nil),
517 (*VxlanGpeIoamVniEnable)(nil),
518 (*VxlanGpeIoamVniEnableReply)(nil),