1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
6 // Package ioam_vxlan_gpe contains generated bindings for API file ioam_vxlan_gpe.api.
11 package ioam_vxlan_gpe
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 = "ioam_vxlan_gpe"
28 VersionCrc = 0xe60c2de2
31 // VxlanGpeIoamDisable defines message 'vxlan_gpe_ioam_disable'.
32 type VxlanGpeIoamDisable struct {
33 ID uint16 `binapi:"u16,name=id" json:"id,omitempty"`
36 func (m *VxlanGpeIoamDisable) Reset() { *m = VxlanGpeIoamDisable{} }
37 func (*VxlanGpeIoamDisable) GetMessageName() string { return "vxlan_gpe_ioam_disable" }
38 func (*VxlanGpeIoamDisable) GetCrcString() string { return "6b16a45e" }
39 func (*VxlanGpeIoamDisable) GetMessageType() api.MessageType {
40 return api.RequestMessage
43 func (m *VxlanGpeIoamDisable) Size() (size int) {
50 func (m *VxlanGpeIoamDisable) Marshal(b []byte) ([]byte, error) {
52 b = make([]byte, m.Size())
54 buf := codec.NewBuffer(b)
55 buf.EncodeUint16(m.ID)
56 return buf.Bytes(), nil
58 func (m *VxlanGpeIoamDisable) Unmarshal(b []byte) error {
59 buf := codec.NewBuffer(b)
60 m.ID = buf.DecodeUint16()
64 // VxlanGpeIoamDisableReply defines message 'vxlan_gpe_ioam_disable_reply'.
65 type VxlanGpeIoamDisableReply struct {
66 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
69 func (m *VxlanGpeIoamDisableReply) Reset() { *m = VxlanGpeIoamDisableReply{} }
70 func (*VxlanGpeIoamDisableReply) GetMessageName() string { return "vxlan_gpe_ioam_disable_reply" }
71 func (*VxlanGpeIoamDisableReply) GetCrcString() string { return "e8d4e804" }
72 func (*VxlanGpeIoamDisableReply) GetMessageType() api.MessageType {
73 return api.ReplyMessage
76 func (m *VxlanGpeIoamDisableReply) Size() (size int) {
83 func (m *VxlanGpeIoamDisableReply) Marshal(b []byte) ([]byte, error) {
85 b = make([]byte, m.Size())
87 buf := codec.NewBuffer(b)
88 buf.EncodeInt32(m.Retval)
89 return buf.Bytes(), nil
91 func (m *VxlanGpeIoamDisableReply) Unmarshal(b []byte) error {
92 buf := codec.NewBuffer(b)
93 m.Retval = buf.DecodeInt32()
97 // VxlanGpeIoamEnable defines message 'vxlan_gpe_ioam_enable'.
98 type VxlanGpeIoamEnable struct {
99 ID uint16 `binapi:"u16,name=id" json:"id,omitempty"`
100 TracePpc uint8 `binapi:"u8,name=trace_ppc" json:"trace_ppc,omitempty"`
101 PowEnable bool `binapi:"bool,name=pow_enable" json:"pow_enable,omitempty"`
102 TraceEnable bool `binapi:"bool,name=trace_enable" json:"trace_enable,omitempty"`
105 func (m *VxlanGpeIoamEnable) Reset() { *m = VxlanGpeIoamEnable{} }
106 func (*VxlanGpeIoamEnable) GetMessageName() string { return "vxlan_gpe_ioam_enable" }
107 func (*VxlanGpeIoamEnable) GetCrcString() string { return "2481bef7" }
108 func (*VxlanGpeIoamEnable) GetMessageType() api.MessageType {
109 return api.RequestMessage
112 func (m *VxlanGpeIoamEnable) Size() (size int) {
117 size += 1 // m.TracePpc
118 size += 1 // m.PowEnable
119 size += 1 // m.TraceEnable
122 func (m *VxlanGpeIoamEnable) Marshal(b []byte) ([]byte, error) {
124 b = make([]byte, m.Size())
126 buf := codec.NewBuffer(b)
127 buf.EncodeUint16(m.ID)
128 buf.EncodeUint8(m.TracePpc)
129 buf.EncodeBool(m.PowEnable)
130 buf.EncodeBool(m.TraceEnable)
131 return buf.Bytes(), nil
133 func (m *VxlanGpeIoamEnable) Unmarshal(b []byte) error {
134 buf := codec.NewBuffer(b)
135 m.ID = buf.DecodeUint16()
136 m.TracePpc = buf.DecodeUint8()
137 m.PowEnable = buf.DecodeBool()
138 m.TraceEnable = buf.DecodeBool()
142 // VxlanGpeIoamEnableReply defines message 'vxlan_gpe_ioam_enable_reply'.
143 type VxlanGpeIoamEnableReply struct {
144 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
147 func (m *VxlanGpeIoamEnableReply) Reset() { *m = VxlanGpeIoamEnableReply{} }
148 func (*VxlanGpeIoamEnableReply) GetMessageName() string { return "vxlan_gpe_ioam_enable_reply" }
149 func (*VxlanGpeIoamEnableReply) GetCrcString() string { return "e8d4e804" }
150 func (*VxlanGpeIoamEnableReply) GetMessageType() api.MessageType {
151 return api.ReplyMessage
154 func (m *VxlanGpeIoamEnableReply) Size() (size int) {
158 size += 4 // m.Retval
161 func (m *VxlanGpeIoamEnableReply) Marshal(b []byte) ([]byte, error) {
163 b = make([]byte, m.Size())
165 buf := codec.NewBuffer(b)
166 buf.EncodeInt32(m.Retval)
167 return buf.Bytes(), nil
169 func (m *VxlanGpeIoamEnableReply) Unmarshal(b []byte) error {
170 buf := codec.NewBuffer(b)
171 m.Retval = buf.DecodeInt32()
175 // VxlanGpeIoamTransitDisable defines message 'vxlan_gpe_ioam_transit_disable'.
176 type VxlanGpeIoamTransitDisable struct {
177 OuterFibIndex uint32 `binapi:"u32,name=outer_fib_index" json:"outer_fib_index,omitempty"`
178 DstAddr ip_types.Address `binapi:"address,name=dst_addr" json:"dst_addr,omitempty"`
181 func (m *VxlanGpeIoamTransitDisable) Reset() { *m = VxlanGpeIoamTransitDisable{} }
182 func (*VxlanGpeIoamTransitDisable) GetMessageName() string { return "vxlan_gpe_ioam_transit_disable" }
183 func (*VxlanGpeIoamTransitDisable) GetCrcString() string { return "553f5b7b" }
184 func (*VxlanGpeIoamTransitDisable) GetMessageType() api.MessageType {
185 return api.RequestMessage
188 func (m *VxlanGpeIoamTransitDisable) Size() (size int) {
192 size += 4 // m.OuterFibIndex
193 size += 1 // m.DstAddr.Af
194 size += 1 * 16 // m.DstAddr.Un
197 func (m *VxlanGpeIoamTransitDisable) Marshal(b []byte) ([]byte, error) {
199 b = make([]byte, m.Size())
201 buf := codec.NewBuffer(b)
202 buf.EncodeUint32(m.OuterFibIndex)
203 buf.EncodeUint8(uint8(m.DstAddr.Af))
204 buf.EncodeBytes(m.DstAddr.Un.XXX_UnionData[:], 16)
205 return buf.Bytes(), nil
207 func (m *VxlanGpeIoamTransitDisable) Unmarshal(b []byte) error {
208 buf := codec.NewBuffer(b)
209 m.OuterFibIndex = buf.DecodeUint32()
210 m.DstAddr.Af = ip_types.AddressFamily(buf.DecodeUint8())
211 copy(m.DstAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16))
215 // VxlanGpeIoamTransitDisableReply defines message 'vxlan_gpe_ioam_transit_disable_reply'.
216 type VxlanGpeIoamTransitDisableReply struct {
217 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
220 func (m *VxlanGpeIoamTransitDisableReply) Reset() { *m = VxlanGpeIoamTransitDisableReply{} }
221 func (*VxlanGpeIoamTransitDisableReply) GetMessageName() string {
222 return "vxlan_gpe_ioam_transit_disable_reply"
224 func (*VxlanGpeIoamTransitDisableReply) GetCrcString() string { return "e8d4e804" }
225 func (*VxlanGpeIoamTransitDisableReply) GetMessageType() api.MessageType {
226 return api.ReplyMessage
229 func (m *VxlanGpeIoamTransitDisableReply) Size() (size int) {
233 size += 4 // m.Retval
236 func (m *VxlanGpeIoamTransitDisableReply) Marshal(b []byte) ([]byte, error) {
238 b = make([]byte, m.Size())
240 buf := codec.NewBuffer(b)
241 buf.EncodeInt32(m.Retval)
242 return buf.Bytes(), nil
244 func (m *VxlanGpeIoamTransitDisableReply) Unmarshal(b []byte) error {
245 buf := codec.NewBuffer(b)
246 m.Retval = buf.DecodeInt32()
250 // VxlanGpeIoamTransitEnable defines message 'vxlan_gpe_ioam_transit_enable'.
251 type VxlanGpeIoamTransitEnable struct {
252 OuterFibIndex uint32 `binapi:"u32,name=outer_fib_index" json:"outer_fib_index,omitempty"`
253 DstAddr ip_types.Address `binapi:"address,name=dst_addr" json:"dst_addr,omitempty"`
256 func (m *VxlanGpeIoamTransitEnable) Reset() { *m = VxlanGpeIoamTransitEnable{} }
257 func (*VxlanGpeIoamTransitEnable) GetMessageName() string { return "vxlan_gpe_ioam_transit_enable" }
258 func (*VxlanGpeIoamTransitEnable) GetCrcString() string { return "553f5b7b" }
259 func (*VxlanGpeIoamTransitEnable) GetMessageType() api.MessageType {
260 return api.RequestMessage
263 func (m *VxlanGpeIoamTransitEnable) Size() (size int) {
267 size += 4 // m.OuterFibIndex
268 size += 1 // m.DstAddr.Af
269 size += 1 * 16 // m.DstAddr.Un
272 func (m *VxlanGpeIoamTransitEnable) Marshal(b []byte) ([]byte, error) {
274 b = make([]byte, m.Size())
276 buf := codec.NewBuffer(b)
277 buf.EncodeUint32(m.OuterFibIndex)
278 buf.EncodeUint8(uint8(m.DstAddr.Af))
279 buf.EncodeBytes(m.DstAddr.Un.XXX_UnionData[:], 16)
280 return buf.Bytes(), nil
282 func (m *VxlanGpeIoamTransitEnable) Unmarshal(b []byte) error {
283 buf := codec.NewBuffer(b)
284 m.OuterFibIndex = buf.DecodeUint32()
285 m.DstAddr.Af = ip_types.AddressFamily(buf.DecodeUint8())
286 copy(m.DstAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16))
290 // VxlanGpeIoamTransitEnableReply defines message 'vxlan_gpe_ioam_transit_enable_reply'.
291 type VxlanGpeIoamTransitEnableReply struct {
292 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
295 func (m *VxlanGpeIoamTransitEnableReply) Reset() { *m = VxlanGpeIoamTransitEnableReply{} }
296 func (*VxlanGpeIoamTransitEnableReply) GetMessageName() string {
297 return "vxlan_gpe_ioam_transit_enable_reply"
299 func (*VxlanGpeIoamTransitEnableReply) GetCrcString() string { return "e8d4e804" }
300 func (*VxlanGpeIoamTransitEnableReply) GetMessageType() api.MessageType {
301 return api.ReplyMessage
304 func (m *VxlanGpeIoamTransitEnableReply) Size() (size int) {
308 size += 4 // m.Retval
311 func (m *VxlanGpeIoamTransitEnableReply) Marshal(b []byte) ([]byte, error) {
313 b = make([]byte, m.Size())
315 buf := codec.NewBuffer(b)
316 buf.EncodeInt32(m.Retval)
317 return buf.Bytes(), nil
319 func (m *VxlanGpeIoamTransitEnableReply) Unmarshal(b []byte) error {
320 buf := codec.NewBuffer(b)
321 m.Retval = buf.DecodeInt32()
325 // VxlanGpeIoamVniDisable defines message 'vxlan_gpe_ioam_vni_disable'.
326 type VxlanGpeIoamVniDisable struct {
327 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
328 Local ip_types.Address `binapi:"address,name=local" json:"local,omitempty"`
329 Remote ip_types.Address `binapi:"address,name=remote" json:"remote,omitempty"`
332 func (m *VxlanGpeIoamVniDisable) Reset() { *m = VxlanGpeIoamVniDisable{} }
333 func (*VxlanGpeIoamVniDisable) GetMessageName() string { return "vxlan_gpe_ioam_vni_disable" }
334 func (*VxlanGpeIoamVniDisable) GetCrcString() string { return "997161fb" }
335 func (*VxlanGpeIoamVniDisable) GetMessageType() api.MessageType {
336 return api.RequestMessage
339 func (m *VxlanGpeIoamVniDisable) Size() (size int) {
344 size += 1 // m.Local.Af
345 size += 1 * 16 // m.Local.Un
346 size += 1 // m.Remote.Af
347 size += 1 * 16 // m.Remote.Un
350 func (m *VxlanGpeIoamVniDisable) Marshal(b []byte) ([]byte, error) {
352 b = make([]byte, m.Size())
354 buf := codec.NewBuffer(b)
355 buf.EncodeUint32(m.Vni)
356 buf.EncodeUint8(uint8(m.Local.Af))
357 buf.EncodeBytes(m.Local.Un.XXX_UnionData[:], 16)
358 buf.EncodeUint8(uint8(m.Remote.Af))
359 buf.EncodeBytes(m.Remote.Un.XXX_UnionData[:], 16)
360 return buf.Bytes(), nil
362 func (m *VxlanGpeIoamVniDisable) Unmarshal(b []byte) error {
363 buf := codec.NewBuffer(b)
364 m.Vni = buf.DecodeUint32()
365 m.Local.Af = ip_types.AddressFamily(buf.DecodeUint8())
366 copy(m.Local.Un.XXX_UnionData[:], buf.DecodeBytes(16))
367 m.Remote.Af = ip_types.AddressFamily(buf.DecodeUint8())
368 copy(m.Remote.Un.XXX_UnionData[:], buf.DecodeBytes(16))
372 // VxlanGpeIoamVniDisableReply defines message 'vxlan_gpe_ioam_vni_disable_reply'.
373 type VxlanGpeIoamVniDisableReply struct {
374 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
377 func (m *VxlanGpeIoamVniDisableReply) Reset() { *m = VxlanGpeIoamVniDisableReply{} }
378 func (*VxlanGpeIoamVniDisableReply) GetMessageName() string {
379 return "vxlan_gpe_ioam_vni_disable_reply"
381 func (*VxlanGpeIoamVniDisableReply) GetCrcString() string { return "e8d4e804" }
382 func (*VxlanGpeIoamVniDisableReply) GetMessageType() api.MessageType {
383 return api.ReplyMessage
386 func (m *VxlanGpeIoamVniDisableReply) Size() (size int) {
390 size += 4 // m.Retval
393 func (m *VxlanGpeIoamVniDisableReply) Marshal(b []byte) ([]byte, error) {
395 b = make([]byte, m.Size())
397 buf := codec.NewBuffer(b)
398 buf.EncodeInt32(m.Retval)
399 return buf.Bytes(), nil
401 func (m *VxlanGpeIoamVniDisableReply) Unmarshal(b []byte) error {
402 buf := codec.NewBuffer(b)
403 m.Retval = buf.DecodeInt32()
407 // VxlanGpeIoamVniEnable defines message 'vxlan_gpe_ioam_vni_enable'.
408 type VxlanGpeIoamVniEnable struct {
409 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
410 Local ip_types.Address `binapi:"address,name=local" json:"local,omitempty"`
411 Remote ip_types.Address `binapi:"address,name=remote" json:"remote,omitempty"`
414 func (m *VxlanGpeIoamVniEnable) Reset() { *m = VxlanGpeIoamVniEnable{} }
415 func (*VxlanGpeIoamVniEnable) GetMessageName() string { return "vxlan_gpe_ioam_vni_enable" }
416 func (*VxlanGpeIoamVniEnable) GetCrcString() string { return "997161fb" }
417 func (*VxlanGpeIoamVniEnable) GetMessageType() api.MessageType {
418 return api.RequestMessage
421 func (m *VxlanGpeIoamVniEnable) Size() (size int) {
426 size += 1 // m.Local.Af
427 size += 1 * 16 // m.Local.Un
428 size += 1 // m.Remote.Af
429 size += 1 * 16 // m.Remote.Un
432 func (m *VxlanGpeIoamVniEnable) Marshal(b []byte) ([]byte, error) {
434 b = make([]byte, m.Size())
436 buf := codec.NewBuffer(b)
437 buf.EncodeUint32(m.Vni)
438 buf.EncodeUint8(uint8(m.Local.Af))
439 buf.EncodeBytes(m.Local.Un.XXX_UnionData[:], 16)
440 buf.EncodeUint8(uint8(m.Remote.Af))
441 buf.EncodeBytes(m.Remote.Un.XXX_UnionData[:], 16)
442 return buf.Bytes(), nil
444 func (m *VxlanGpeIoamVniEnable) Unmarshal(b []byte) error {
445 buf := codec.NewBuffer(b)
446 m.Vni = buf.DecodeUint32()
447 m.Local.Af = ip_types.AddressFamily(buf.DecodeUint8())
448 copy(m.Local.Un.XXX_UnionData[:], buf.DecodeBytes(16))
449 m.Remote.Af = ip_types.AddressFamily(buf.DecodeUint8())
450 copy(m.Remote.Un.XXX_UnionData[:], buf.DecodeBytes(16))
454 // VxlanGpeIoamVniEnableReply defines message 'vxlan_gpe_ioam_vni_enable_reply'.
455 type VxlanGpeIoamVniEnableReply struct {
456 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
459 func (m *VxlanGpeIoamVniEnableReply) Reset() { *m = VxlanGpeIoamVniEnableReply{} }
460 func (*VxlanGpeIoamVniEnableReply) GetMessageName() string { return "vxlan_gpe_ioam_vni_enable_reply" }
461 func (*VxlanGpeIoamVniEnableReply) GetCrcString() string { return "e8d4e804" }
462 func (*VxlanGpeIoamVniEnableReply) GetMessageType() api.MessageType {
463 return api.ReplyMessage
466 func (m *VxlanGpeIoamVniEnableReply) Size() (size int) {
470 size += 4 // m.Retval
473 func (m *VxlanGpeIoamVniEnableReply) Marshal(b []byte) ([]byte, error) {
475 b = make([]byte, m.Size())
477 buf := codec.NewBuffer(b)
478 buf.EncodeInt32(m.Retval)
479 return buf.Bytes(), nil
481 func (m *VxlanGpeIoamVniEnableReply) Unmarshal(b []byte) error {
482 buf := codec.NewBuffer(b)
483 m.Retval = buf.DecodeInt32()
487 func init() { file_ioam_vxlan_gpe_binapi_init() }
488 func file_ioam_vxlan_gpe_binapi_init() {
489 api.RegisterMessage((*VxlanGpeIoamDisable)(nil), "vxlan_gpe_ioam_disable_6b16a45e")
490 api.RegisterMessage((*VxlanGpeIoamDisableReply)(nil), "vxlan_gpe_ioam_disable_reply_e8d4e804")
491 api.RegisterMessage((*VxlanGpeIoamEnable)(nil), "vxlan_gpe_ioam_enable_2481bef7")
492 api.RegisterMessage((*VxlanGpeIoamEnableReply)(nil), "vxlan_gpe_ioam_enable_reply_e8d4e804")
493 api.RegisterMessage((*VxlanGpeIoamTransitDisable)(nil), "vxlan_gpe_ioam_transit_disable_553f5b7b")
494 api.RegisterMessage((*VxlanGpeIoamTransitDisableReply)(nil), "vxlan_gpe_ioam_transit_disable_reply_e8d4e804")
495 api.RegisterMessage((*VxlanGpeIoamTransitEnable)(nil), "vxlan_gpe_ioam_transit_enable_553f5b7b")
496 api.RegisterMessage((*VxlanGpeIoamTransitEnableReply)(nil), "vxlan_gpe_ioam_transit_enable_reply_e8d4e804")
497 api.RegisterMessage((*VxlanGpeIoamVniDisable)(nil), "vxlan_gpe_ioam_vni_disable_997161fb")
498 api.RegisterMessage((*VxlanGpeIoamVniDisableReply)(nil), "vxlan_gpe_ioam_vni_disable_reply_e8d4e804")
499 api.RegisterMessage((*VxlanGpeIoamVniEnable)(nil), "vxlan_gpe_ioam_vni_enable_997161fb")
500 api.RegisterMessage((*VxlanGpeIoamVniEnableReply)(nil), "vxlan_gpe_ioam_vni_enable_reply_e8d4e804")
503 // Messages returns list of all messages in this module.
504 func AllMessages() []api.Message {
505 return []api.Message{
506 (*VxlanGpeIoamDisable)(nil),
507 (*VxlanGpeIoamDisableReply)(nil),
508 (*VxlanGpeIoamEnable)(nil),
509 (*VxlanGpeIoamEnableReply)(nil),
510 (*VxlanGpeIoamTransitDisable)(nil),
511 (*VxlanGpeIoamTransitDisableReply)(nil),
512 (*VxlanGpeIoamTransitEnable)(nil),
513 (*VxlanGpeIoamTransitEnableReply)(nil),
514 (*VxlanGpeIoamVniDisable)(nil),
515 (*VxlanGpeIoamVniDisableReply)(nil),
516 (*VxlanGpeIoamVniEnable)(nil),
517 (*VxlanGpeIoamVniEnableReply)(nil),