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/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 "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 = "ioam_vxlan_gpe"
29 VersionCrc = 0xe60c2de2
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() int {
52 func (m *VxlanGpeIoamDisable) Marshal(b []byte) ([]byte, error) {
55 buf = codec.NewBuffer(make([]byte, m.Size()))
57 buf = codec.NewBuffer(b)
59 buf.EncodeUint16(uint16(m.ID))
60 return buf.Bytes(), nil
62 func (m *VxlanGpeIoamDisable) Unmarshal(b []byte) error {
63 buf := codec.NewBuffer(b)
64 m.ID = buf.DecodeUint16()
68 // VxlanGpeIoamDisableReply defines message 'vxlan_gpe_ioam_disable_reply'.
69 type VxlanGpeIoamDisableReply struct {
70 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
73 func (m *VxlanGpeIoamDisableReply) Reset() { *m = VxlanGpeIoamDisableReply{} }
74 func (*VxlanGpeIoamDisableReply) GetMessageName() string { return "vxlan_gpe_ioam_disable_reply" }
75 func (*VxlanGpeIoamDisableReply) GetCrcString() string { return "e8d4e804" }
76 func (*VxlanGpeIoamDisableReply) GetMessageType() api.MessageType {
77 return api.ReplyMessage
80 func (m *VxlanGpeIoamDisableReply) Size() int {
88 func (m *VxlanGpeIoamDisableReply) Marshal(b []byte) ([]byte, error) {
91 buf = codec.NewBuffer(make([]byte, m.Size()))
93 buf = codec.NewBuffer(b)
95 buf.EncodeUint32(uint32(m.Retval))
96 return buf.Bytes(), nil
98 func (m *VxlanGpeIoamDisableReply) Unmarshal(b []byte) error {
99 buf := codec.NewBuffer(b)
100 m.Retval = int32(buf.DecodeUint32())
104 // VxlanGpeIoamEnable defines message 'vxlan_gpe_ioam_enable'.
105 type VxlanGpeIoamEnable struct {
106 ID uint16 `binapi:"u16,name=id" json:"id,omitempty"`
107 TracePpc uint8 `binapi:"u8,name=trace_ppc" json:"trace_ppc,omitempty"`
108 PowEnable bool `binapi:"bool,name=pow_enable" json:"pow_enable,omitempty"`
109 TraceEnable bool `binapi:"bool,name=trace_enable" json:"trace_enable,omitempty"`
112 func (m *VxlanGpeIoamEnable) Reset() { *m = VxlanGpeIoamEnable{} }
113 func (*VxlanGpeIoamEnable) GetMessageName() string { return "vxlan_gpe_ioam_enable" }
114 func (*VxlanGpeIoamEnable) GetCrcString() string { return "2481bef7" }
115 func (*VxlanGpeIoamEnable) GetMessageType() api.MessageType {
116 return api.RequestMessage
119 func (m *VxlanGpeIoamEnable) Size() int {
125 size += 1 // m.TracePpc
126 size += 1 // m.PowEnable
127 size += 1 // m.TraceEnable
130 func (m *VxlanGpeIoamEnable) Marshal(b []byte) ([]byte, error) {
131 var buf *codec.Buffer
133 buf = codec.NewBuffer(make([]byte, m.Size()))
135 buf = codec.NewBuffer(b)
137 buf.EncodeUint16(uint16(m.ID))
138 buf.EncodeUint8(uint8(m.TracePpc))
139 buf.EncodeBool(m.PowEnable)
140 buf.EncodeBool(m.TraceEnable)
141 return buf.Bytes(), nil
143 func (m *VxlanGpeIoamEnable) Unmarshal(b []byte) error {
144 buf := codec.NewBuffer(b)
145 m.ID = buf.DecodeUint16()
146 m.TracePpc = buf.DecodeUint8()
147 m.PowEnable = buf.DecodeBool()
148 m.TraceEnable = buf.DecodeBool()
152 // VxlanGpeIoamEnableReply defines message 'vxlan_gpe_ioam_enable_reply'.
153 type VxlanGpeIoamEnableReply struct {
154 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
157 func (m *VxlanGpeIoamEnableReply) Reset() { *m = VxlanGpeIoamEnableReply{} }
158 func (*VxlanGpeIoamEnableReply) GetMessageName() string { return "vxlan_gpe_ioam_enable_reply" }
159 func (*VxlanGpeIoamEnableReply) GetCrcString() string { return "e8d4e804" }
160 func (*VxlanGpeIoamEnableReply) GetMessageType() api.MessageType {
161 return api.ReplyMessage
164 func (m *VxlanGpeIoamEnableReply) Size() int {
169 size += 4 // m.Retval
172 func (m *VxlanGpeIoamEnableReply) Marshal(b []byte) ([]byte, error) {
173 var buf *codec.Buffer
175 buf = codec.NewBuffer(make([]byte, m.Size()))
177 buf = codec.NewBuffer(b)
179 buf.EncodeUint32(uint32(m.Retval))
180 return buf.Bytes(), nil
182 func (m *VxlanGpeIoamEnableReply) Unmarshal(b []byte) error {
183 buf := codec.NewBuffer(b)
184 m.Retval = int32(buf.DecodeUint32())
188 // VxlanGpeIoamTransitDisable defines message 'vxlan_gpe_ioam_transit_disable'.
189 type VxlanGpeIoamTransitDisable struct {
190 OuterFibIndex uint32 `binapi:"u32,name=outer_fib_index" json:"outer_fib_index,omitempty"`
191 DstAddr ip_types.Address `binapi:"address,name=dst_addr" json:"dst_addr,omitempty"`
194 func (m *VxlanGpeIoamTransitDisable) Reset() { *m = VxlanGpeIoamTransitDisable{} }
195 func (*VxlanGpeIoamTransitDisable) GetMessageName() string { return "vxlan_gpe_ioam_transit_disable" }
196 func (*VxlanGpeIoamTransitDisable) GetCrcString() string { return "553f5b7b" }
197 func (*VxlanGpeIoamTransitDisable) GetMessageType() api.MessageType {
198 return api.RequestMessage
201 func (m *VxlanGpeIoamTransitDisable) Size() int {
206 size += 4 // m.OuterFibIndex
207 size += 1 // m.DstAddr.Af
208 size += 1 * 16 // m.DstAddr.Un
211 func (m *VxlanGpeIoamTransitDisable) Marshal(b []byte) ([]byte, error) {
212 var buf *codec.Buffer
214 buf = codec.NewBuffer(make([]byte, m.Size()))
216 buf = codec.NewBuffer(b)
218 buf.EncodeUint32(uint32(m.OuterFibIndex))
219 buf.EncodeUint8(uint8(m.DstAddr.Af))
220 buf.EncodeBytes(m.DstAddr.Un.XXX_UnionData[:], 0)
221 return buf.Bytes(), nil
223 func (m *VxlanGpeIoamTransitDisable) Unmarshal(b []byte) error {
224 buf := codec.NewBuffer(b)
225 m.OuterFibIndex = buf.DecodeUint32()
226 m.DstAddr.Af = ip_types.AddressFamily(buf.DecodeUint8())
227 copy(m.DstAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16))
231 // VxlanGpeIoamTransitDisableReply defines message 'vxlan_gpe_ioam_transit_disable_reply'.
232 type VxlanGpeIoamTransitDisableReply struct {
233 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
236 func (m *VxlanGpeIoamTransitDisableReply) Reset() { *m = VxlanGpeIoamTransitDisableReply{} }
237 func (*VxlanGpeIoamTransitDisableReply) GetMessageName() string {
238 return "vxlan_gpe_ioam_transit_disable_reply"
240 func (*VxlanGpeIoamTransitDisableReply) GetCrcString() string { return "e8d4e804" }
241 func (*VxlanGpeIoamTransitDisableReply) GetMessageType() api.MessageType {
242 return api.ReplyMessage
245 func (m *VxlanGpeIoamTransitDisableReply) Size() int {
250 size += 4 // m.Retval
253 func (m *VxlanGpeIoamTransitDisableReply) Marshal(b []byte) ([]byte, error) {
254 var buf *codec.Buffer
256 buf = codec.NewBuffer(make([]byte, m.Size()))
258 buf = codec.NewBuffer(b)
260 buf.EncodeUint32(uint32(m.Retval))
261 return buf.Bytes(), nil
263 func (m *VxlanGpeIoamTransitDisableReply) Unmarshal(b []byte) error {
264 buf := codec.NewBuffer(b)
265 m.Retval = int32(buf.DecodeUint32())
269 // VxlanGpeIoamTransitEnable defines message 'vxlan_gpe_ioam_transit_enable'.
270 type VxlanGpeIoamTransitEnable struct {
271 OuterFibIndex uint32 `binapi:"u32,name=outer_fib_index" json:"outer_fib_index,omitempty"`
272 DstAddr ip_types.Address `binapi:"address,name=dst_addr" json:"dst_addr,omitempty"`
275 func (m *VxlanGpeIoamTransitEnable) Reset() { *m = VxlanGpeIoamTransitEnable{} }
276 func (*VxlanGpeIoamTransitEnable) GetMessageName() string { return "vxlan_gpe_ioam_transit_enable" }
277 func (*VxlanGpeIoamTransitEnable) GetCrcString() string { return "553f5b7b" }
278 func (*VxlanGpeIoamTransitEnable) GetMessageType() api.MessageType {
279 return api.RequestMessage
282 func (m *VxlanGpeIoamTransitEnable) Size() int {
287 size += 4 // m.OuterFibIndex
288 size += 1 // m.DstAddr.Af
289 size += 1 * 16 // m.DstAddr.Un
292 func (m *VxlanGpeIoamTransitEnable) Marshal(b []byte) ([]byte, error) {
293 var buf *codec.Buffer
295 buf = codec.NewBuffer(make([]byte, m.Size()))
297 buf = codec.NewBuffer(b)
299 buf.EncodeUint32(uint32(m.OuterFibIndex))
300 buf.EncodeUint8(uint8(m.DstAddr.Af))
301 buf.EncodeBytes(m.DstAddr.Un.XXX_UnionData[:], 0)
302 return buf.Bytes(), nil
304 func (m *VxlanGpeIoamTransitEnable) Unmarshal(b []byte) error {
305 buf := codec.NewBuffer(b)
306 m.OuterFibIndex = buf.DecodeUint32()
307 m.DstAddr.Af = ip_types.AddressFamily(buf.DecodeUint8())
308 copy(m.DstAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16))
312 // VxlanGpeIoamTransitEnableReply defines message 'vxlan_gpe_ioam_transit_enable_reply'.
313 type VxlanGpeIoamTransitEnableReply struct {
314 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
317 func (m *VxlanGpeIoamTransitEnableReply) Reset() { *m = VxlanGpeIoamTransitEnableReply{} }
318 func (*VxlanGpeIoamTransitEnableReply) GetMessageName() string {
319 return "vxlan_gpe_ioam_transit_enable_reply"
321 func (*VxlanGpeIoamTransitEnableReply) GetCrcString() string { return "e8d4e804" }
322 func (*VxlanGpeIoamTransitEnableReply) GetMessageType() api.MessageType {
323 return api.ReplyMessage
326 func (m *VxlanGpeIoamTransitEnableReply) Size() int {
331 size += 4 // m.Retval
334 func (m *VxlanGpeIoamTransitEnableReply) Marshal(b []byte) ([]byte, error) {
335 var buf *codec.Buffer
337 buf = codec.NewBuffer(make([]byte, m.Size()))
339 buf = codec.NewBuffer(b)
341 buf.EncodeUint32(uint32(m.Retval))
342 return buf.Bytes(), nil
344 func (m *VxlanGpeIoamTransitEnableReply) Unmarshal(b []byte) error {
345 buf := codec.NewBuffer(b)
346 m.Retval = int32(buf.DecodeUint32())
350 // VxlanGpeIoamVniDisable defines message 'vxlan_gpe_ioam_vni_disable'.
351 type VxlanGpeIoamVniDisable struct {
352 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
353 Local ip_types.Address `binapi:"address,name=local" json:"local,omitempty"`
354 Remote ip_types.Address `binapi:"address,name=remote" json:"remote,omitempty"`
357 func (m *VxlanGpeIoamVniDisable) Reset() { *m = VxlanGpeIoamVniDisable{} }
358 func (*VxlanGpeIoamVniDisable) GetMessageName() string { return "vxlan_gpe_ioam_vni_disable" }
359 func (*VxlanGpeIoamVniDisable) GetCrcString() string { return "997161fb" }
360 func (*VxlanGpeIoamVniDisable) GetMessageType() api.MessageType {
361 return api.RequestMessage
364 func (m *VxlanGpeIoamVniDisable) Size() int {
370 size += 1 // m.Local.Af
371 size += 1 * 16 // m.Local.Un
372 size += 1 // m.Remote.Af
373 size += 1 * 16 // m.Remote.Un
376 func (m *VxlanGpeIoamVniDisable) Marshal(b []byte) ([]byte, error) {
377 var buf *codec.Buffer
379 buf = codec.NewBuffer(make([]byte, m.Size()))
381 buf = codec.NewBuffer(b)
383 buf.EncodeUint32(uint32(m.Vni))
384 buf.EncodeUint8(uint8(m.Local.Af))
385 buf.EncodeBytes(m.Local.Un.XXX_UnionData[:], 0)
386 buf.EncodeUint8(uint8(m.Remote.Af))
387 buf.EncodeBytes(m.Remote.Un.XXX_UnionData[:], 0)
388 return buf.Bytes(), nil
390 func (m *VxlanGpeIoamVniDisable) Unmarshal(b []byte) error {
391 buf := codec.NewBuffer(b)
392 m.Vni = buf.DecodeUint32()
393 m.Local.Af = ip_types.AddressFamily(buf.DecodeUint8())
394 copy(m.Local.Un.XXX_UnionData[:], buf.DecodeBytes(16))
395 m.Remote.Af = ip_types.AddressFamily(buf.DecodeUint8())
396 copy(m.Remote.Un.XXX_UnionData[:], buf.DecodeBytes(16))
400 // VxlanGpeIoamVniDisableReply defines message 'vxlan_gpe_ioam_vni_disable_reply'.
401 type VxlanGpeIoamVniDisableReply struct {
402 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
405 func (m *VxlanGpeIoamVniDisableReply) Reset() { *m = VxlanGpeIoamVniDisableReply{} }
406 func (*VxlanGpeIoamVniDisableReply) GetMessageName() string {
407 return "vxlan_gpe_ioam_vni_disable_reply"
409 func (*VxlanGpeIoamVniDisableReply) GetCrcString() string { return "e8d4e804" }
410 func (*VxlanGpeIoamVniDisableReply) GetMessageType() api.MessageType {
411 return api.ReplyMessage
414 func (m *VxlanGpeIoamVniDisableReply) Size() int {
419 size += 4 // m.Retval
422 func (m *VxlanGpeIoamVniDisableReply) Marshal(b []byte) ([]byte, error) {
423 var buf *codec.Buffer
425 buf = codec.NewBuffer(make([]byte, m.Size()))
427 buf = codec.NewBuffer(b)
429 buf.EncodeUint32(uint32(m.Retval))
430 return buf.Bytes(), nil
432 func (m *VxlanGpeIoamVniDisableReply) Unmarshal(b []byte) error {
433 buf := codec.NewBuffer(b)
434 m.Retval = int32(buf.DecodeUint32())
438 // VxlanGpeIoamVniEnable defines message 'vxlan_gpe_ioam_vni_enable'.
439 type VxlanGpeIoamVniEnable struct {
440 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
441 Local ip_types.Address `binapi:"address,name=local" json:"local,omitempty"`
442 Remote ip_types.Address `binapi:"address,name=remote" json:"remote,omitempty"`
445 func (m *VxlanGpeIoamVniEnable) Reset() { *m = VxlanGpeIoamVniEnable{} }
446 func (*VxlanGpeIoamVniEnable) GetMessageName() string { return "vxlan_gpe_ioam_vni_enable" }
447 func (*VxlanGpeIoamVniEnable) GetCrcString() string { return "997161fb" }
448 func (*VxlanGpeIoamVniEnable) GetMessageType() api.MessageType {
449 return api.RequestMessage
452 func (m *VxlanGpeIoamVniEnable) Size() int {
458 size += 1 // m.Local.Af
459 size += 1 * 16 // m.Local.Un
460 size += 1 // m.Remote.Af
461 size += 1 * 16 // m.Remote.Un
464 func (m *VxlanGpeIoamVniEnable) Marshal(b []byte) ([]byte, error) {
465 var buf *codec.Buffer
467 buf = codec.NewBuffer(make([]byte, m.Size()))
469 buf = codec.NewBuffer(b)
471 buf.EncodeUint32(uint32(m.Vni))
472 buf.EncodeUint8(uint8(m.Local.Af))
473 buf.EncodeBytes(m.Local.Un.XXX_UnionData[:], 0)
474 buf.EncodeUint8(uint8(m.Remote.Af))
475 buf.EncodeBytes(m.Remote.Un.XXX_UnionData[:], 0)
476 return buf.Bytes(), nil
478 func (m *VxlanGpeIoamVniEnable) Unmarshal(b []byte) error {
479 buf := codec.NewBuffer(b)
480 m.Vni = buf.DecodeUint32()
481 m.Local.Af = ip_types.AddressFamily(buf.DecodeUint8())
482 copy(m.Local.Un.XXX_UnionData[:], buf.DecodeBytes(16))
483 m.Remote.Af = ip_types.AddressFamily(buf.DecodeUint8())
484 copy(m.Remote.Un.XXX_UnionData[:], buf.DecodeBytes(16))
488 // VxlanGpeIoamVniEnableReply defines message 'vxlan_gpe_ioam_vni_enable_reply'.
489 type VxlanGpeIoamVniEnableReply struct {
490 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
493 func (m *VxlanGpeIoamVniEnableReply) Reset() { *m = VxlanGpeIoamVniEnableReply{} }
494 func (*VxlanGpeIoamVniEnableReply) GetMessageName() string { return "vxlan_gpe_ioam_vni_enable_reply" }
495 func (*VxlanGpeIoamVniEnableReply) GetCrcString() string { return "e8d4e804" }
496 func (*VxlanGpeIoamVniEnableReply) GetMessageType() api.MessageType {
497 return api.ReplyMessage
500 func (m *VxlanGpeIoamVniEnableReply) Size() int {
505 size += 4 // m.Retval
508 func (m *VxlanGpeIoamVniEnableReply) Marshal(b []byte) ([]byte, error) {
509 var buf *codec.Buffer
511 buf = codec.NewBuffer(make([]byte, m.Size()))
513 buf = codec.NewBuffer(b)
515 buf.EncodeUint32(uint32(m.Retval))
516 return buf.Bytes(), nil
518 func (m *VxlanGpeIoamVniEnableReply) Unmarshal(b []byte) error {
519 buf := codec.NewBuffer(b)
520 m.Retval = int32(buf.DecodeUint32())
524 func init() { file_ioam_vxlan_gpe_binapi_init() }
525 func file_ioam_vxlan_gpe_binapi_init() {
526 api.RegisterMessage((*VxlanGpeIoamDisable)(nil), "vxlan_gpe_ioam_disable_6b16a45e")
527 api.RegisterMessage((*VxlanGpeIoamDisableReply)(nil), "vxlan_gpe_ioam_disable_reply_e8d4e804")
528 api.RegisterMessage((*VxlanGpeIoamEnable)(nil), "vxlan_gpe_ioam_enable_2481bef7")
529 api.RegisterMessage((*VxlanGpeIoamEnableReply)(nil), "vxlan_gpe_ioam_enable_reply_e8d4e804")
530 api.RegisterMessage((*VxlanGpeIoamTransitDisable)(nil), "vxlan_gpe_ioam_transit_disable_553f5b7b")
531 api.RegisterMessage((*VxlanGpeIoamTransitDisableReply)(nil), "vxlan_gpe_ioam_transit_disable_reply_e8d4e804")
532 api.RegisterMessage((*VxlanGpeIoamTransitEnable)(nil), "vxlan_gpe_ioam_transit_enable_553f5b7b")
533 api.RegisterMessage((*VxlanGpeIoamTransitEnableReply)(nil), "vxlan_gpe_ioam_transit_enable_reply_e8d4e804")
534 api.RegisterMessage((*VxlanGpeIoamVniDisable)(nil), "vxlan_gpe_ioam_vni_disable_997161fb")
535 api.RegisterMessage((*VxlanGpeIoamVniDisableReply)(nil), "vxlan_gpe_ioam_vni_disable_reply_e8d4e804")
536 api.RegisterMessage((*VxlanGpeIoamVniEnable)(nil), "vxlan_gpe_ioam_vni_enable_997161fb")
537 api.RegisterMessage((*VxlanGpeIoamVniEnableReply)(nil), "vxlan_gpe_ioam_vni_enable_reply_e8d4e804")
540 // Messages returns list of all messages in this module.
541 func AllMessages() []api.Message {
542 return []api.Message{
543 (*VxlanGpeIoamDisable)(nil),
544 (*VxlanGpeIoamDisableReply)(nil),
545 (*VxlanGpeIoamEnable)(nil),
546 (*VxlanGpeIoamEnableReply)(nil),
547 (*VxlanGpeIoamTransitDisable)(nil),
548 (*VxlanGpeIoamTransitDisableReply)(nil),
549 (*VxlanGpeIoamTransitEnable)(nil),
550 (*VxlanGpeIoamTransitEnableReply)(nil),
551 (*VxlanGpeIoamVniDisable)(nil),
552 (*VxlanGpeIoamVniDisableReply)(nil),
553 (*VxlanGpeIoamVniEnable)(nil),
554 (*VxlanGpeIoamVniEnableReply)(nil),