This repository has been archived by the owner on Aug 3, 2020. It is now read-only.
forked from ligato/vpp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bfd.ba.go
568 lines (504 loc) · 16.1 KB
/
bfd.ba.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
// Code generated by GoVPP binapi-generator. DO NOT EDIT.
// source: /usr/share/vpp/api/bfd.api.json
/*
Package bfd is a generated from VPP binary API module 'bfd'.
It contains following objects:
14 services
28 messages
*/
package bfd
import api "git.fd.io/govpp.git/api"
import struc "github.com/lunixbochs/struc"
import bytes "bytes"
// Reference imports to suppress errors if they are not otherwise used.
var _ = api.RegisterMessage
var _ = struc.Pack
var _ = bytes.NewBuffer
// Services represents VPP binary API services:
type Services interface {
DumpBfdAuthKeys(*BfdAuthKeysDump) ([]*BfdAuthKeysDetails, error)
DumpBfdUDPSession(*BfdUDPSessionDump) ([]*BfdUDPSessionDetails, error)
BfdAuthDelKey(*BfdAuthDelKey) (*BfdAuthDelKeyReply, error)
BfdAuthSetKey(*BfdAuthSetKey) (*BfdAuthSetKeyReply, error)
BfdUDPAdd(*BfdUDPAdd) (*BfdUDPAddReply, error)
BfdUDPAuthActivate(*BfdUDPAuthActivate) (*BfdUDPAuthActivateReply, error)
BfdUDPAuthDeactivate(*BfdUDPAuthDeactivate) (*BfdUDPAuthDeactivateReply, error)
BfdUDPDel(*BfdUDPDel) (*BfdUDPDelReply, error)
BfdUDPDelEchoSource(*BfdUDPDelEchoSource) (*BfdUDPDelEchoSourceReply, error)
BfdUDPGetEchoSource(*BfdUDPGetEchoSource) (*BfdUDPGetEchoSourceReply, error)
BfdUDPMod(*BfdUDPMod) (*BfdUDPModReply, error)
BfdUDPSessionSetFlags(*BfdUDPSessionSetFlags) (*BfdUDPSessionSetFlagsReply, error)
BfdUDPSetEchoSource(*BfdUDPSetEchoSource) (*BfdUDPSetEchoSourceReply, error)
WantBfdEvents(*WantBfdEvents) (*WantBfdEventsReply, error)
}
/* Messages */
// BfdAuthDelKey represents VPP binary API message 'bfd_auth_del_key':
type BfdAuthDelKey struct {
ConfKeyID uint32
}
func (*BfdAuthDelKey) GetMessageName() string {
return "bfd_auth_del_key"
}
func (*BfdAuthDelKey) GetCrcString() string {
return "65310b22"
}
func (*BfdAuthDelKey) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdAuthDelKeyReply represents VPP binary API message 'bfd_auth_del_key_reply':
type BfdAuthDelKeyReply struct {
Retval int32
}
func (*BfdAuthDelKeyReply) GetMessageName() string {
return "bfd_auth_del_key_reply"
}
func (*BfdAuthDelKeyReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdAuthDelKeyReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdAuthKeysDetails represents VPP binary API message 'bfd_auth_keys_details':
type BfdAuthKeysDetails struct {
ConfKeyID uint32
UseCount uint32
AuthType uint8
}
func (*BfdAuthKeysDetails) GetMessageName() string {
return "bfd_auth_keys_details"
}
func (*BfdAuthKeysDetails) GetCrcString() string {
return "84130e9f"
}
func (*BfdAuthKeysDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdAuthKeysDump represents VPP binary API message 'bfd_auth_keys_dump':
type BfdAuthKeysDump struct{}
func (*BfdAuthKeysDump) GetMessageName() string {
return "bfd_auth_keys_dump"
}
func (*BfdAuthKeysDump) GetCrcString() string {
return "51077d14"
}
func (*BfdAuthKeysDump) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdAuthSetKey represents VPP binary API message 'bfd_auth_set_key':
type BfdAuthSetKey struct {
ConfKeyID uint32
KeyLen uint8
AuthType uint8
Key []byte `struc:"[20]byte"`
}
func (*BfdAuthSetKey) GetMessageName() string {
return "bfd_auth_set_key"
}
func (*BfdAuthSetKey) GetCrcString() string {
return "690b8877"
}
func (*BfdAuthSetKey) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdAuthSetKeyReply represents VPP binary API message 'bfd_auth_set_key_reply':
type BfdAuthSetKeyReply struct {
Retval int32
}
func (*BfdAuthSetKeyReply) GetMessageName() string {
return "bfd_auth_set_key_reply"
}
func (*BfdAuthSetKeyReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdAuthSetKeyReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPAdd represents VPP binary API message 'bfd_udp_add':
type BfdUDPAdd struct {
SwIfIndex uint32
DesiredMinTx uint32
RequiredMinRx uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
DetectMult uint8
IsAuthenticated uint8
BfdKeyID uint8
ConfKeyID uint32
}
func (*BfdUDPAdd) GetMessageName() string {
return "bfd_udp_add"
}
func (*BfdUDPAdd) GetCrcString() string {
return "61cf1850"
}
func (*BfdUDPAdd) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPAddReply represents VPP binary API message 'bfd_udp_add_reply':
type BfdUDPAddReply struct {
Retval int32
}
func (*BfdUDPAddReply) GetMessageName() string {
return "bfd_udp_add_reply"
}
func (*BfdUDPAddReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPAddReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPAuthActivate represents VPP binary API message 'bfd_udp_auth_activate':
type BfdUDPAuthActivate struct {
SwIfIndex uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
IsDelayed uint8
BfdKeyID uint8
ConfKeyID uint32
}
func (*BfdUDPAuthActivate) GetMessageName() string {
return "bfd_udp_auth_activate"
}
func (*BfdUDPAuthActivate) GetCrcString() string {
return "1bae0947"
}
func (*BfdUDPAuthActivate) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPAuthActivateReply represents VPP binary API message 'bfd_udp_auth_activate_reply':
type BfdUDPAuthActivateReply struct {
Retval int32
}
func (*BfdUDPAuthActivateReply) GetMessageName() string {
return "bfd_udp_auth_activate_reply"
}
func (*BfdUDPAuthActivateReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPAuthActivateReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPAuthDeactivate represents VPP binary API message 'bfd_udp_auth_deactivate':
type BfdUDPAuthDeactivate struct {
SwIfIndex uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
IsDelayed uint8
}
func (*BfdUDPAuthDeactivate) GetMessageName() string {
return "bfd_udp_auth_deactivate"
}
func (*BfdUDPAuthDeactivate) GetCrcString() string {
return "10661991"
}
func (*BfdUDPAuthDeactivate) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPAuthDeactivateReply represents VPP binary API message 'bfd_udp_auth_deactivate_reply':
type BfdUDPAuthDeactivateReply struct {
Retval int32
}
func (*BfdUDPAuthDeactivateReply) GetMessageName() string {
return "bfd_udp_auth_deactivate_reply"
}
func (*BfdUDPAuthDeactivateReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPAuthDeactivateReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPDel represents VPP binary API message 'bfd_udp_del':
type BfdUDPDel struct {
SwIfIndex uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
}
func (*BfdUDPDel) GetMessageName() string {
return "bfd_udp_del"
}
func (*BfdUDPDel) GetCrcString() string {
return "c9e9cc5a"
}
func (*BfdUDPDel) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPDelEchoSource represents VPP binary API message 'bfd_udp_del_echo_source':
type BfdUDPDelEchoSource struct{}
func (*BfdUDPDelEchoSource) GetMessageName() string {
return "bfd_udp_del_echo_source"
}
func (*BfdUDPDelEchoSource) GetCrcString() string {
return "51077d14"
}
func (*BfdUDPDelEchoSource) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPDelEchoSourceReply represents VPP binary API message 'bfd_udp_del_echo_source_reply':
type BfdUDPDelEchoSourceReply struct {
Retval int32
}
func (*BfdUDPDelEchoSourceReply) GetMessageName() string {
return "bfd_udp_del_echo_source_reply"
}
func (*BfdUDPDelEchoSourceReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPDelEchoSourceReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPDelReply represents VPP binary API message 'bfd_udp_del_reply':
type BfdUDPDelReply struct {
Retval int32
}
func (*BfdUDPDelReply) GetMessageName() string {
return "bfd_udp_del_reply"
}
func (*BfdUDPDelReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPDelReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPGetEchoSource represents VPP binary API message 'bfd_udp_get_echo_source':
type BfdUDPGetEchoSource struct{}
func (*BfdUDPGetEchoSource) GetMessageName() string {
return "bfd_udp_get_echo_source"
}
func (*BfdUDPGetEchoSource) GetCrcString() string {
return "51077d14"
}
func (*BfdUDPGetEchoSource) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPGetEchoSourceReply represents VPP binary API message 'bfd_udp_get_echo_source_reply':
type BfdUDPGetEchoSourceReply struct {
Retval int32
SwIfIndex uint32
IsSet uint8
HaveUsableIP4 uint8
IP4Addr []byte `struc:"[4]byte"`
HaveUsableIP6 uint8
IP6Addr []byte `struc:"[16]byte"`
}
func (*BfdUDPGetEchoSourceReply) GetMessageName() string {
return "bfd_udp_get_echo_source_reply"
}
func (*BfdUDPGetEchoSourceReply) GetCrcString() string {
return "6924ca6b"
}
func (*BfdUDPGetEchoSourceReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPMod represents VPP binary API message 'bfd_udp_mod':
type BfdUDPMod struct {
SwIfIndex uint32
DesiredMinTx uint32
RequiredMinRx uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
DetectMult uint8
}
func (*BfdUDPMod) GetMessageName() string {
return "bfd_udp_mod"
}
func (*BfdUDPMod) GetCrcString() string {
return "6049bf47"
}
func (*BfdUDPMod) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPModReply represents VPP binary API message 'bfd_udp_mod_reply':
type BfdUDPModReply struct {
Retval int32
}
func (*BfdUDPModReply) GetMessageName() string {
return "bfd_udp_mod_reply"
}
func (*BfdUDPModReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPModReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPSessionDetails represents VPP binary API message 'bfd_udp_session_details':
type BfdUDPSessionDetails struct {
SwIfIndex uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
State uint8
IsAuthenticated uint8
BfdKeyID uint8
ConfKeyID uint32
RequiredMinRx uint32
DesiredMinTx uint32
DetectMult uint8
}
func (*BfdUDPSessionDetails) GetMessageName() string {
return "bfd_udp_session_details"
}
func (*BfdUDPSessionDetails) GetCrcString() string {
return "837bb0ed"
}
func (*BfdUDPSessionDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPSessionDump represents VPP binary API message 'bfd_udp_session_dump':
type BfdUDPSessionDump struct{}
func (*BfdUDPSessionDump) GetMessageName() string {
return "bfd_udp_session_dump"
}
func (*BfdUDPSessionDump) GetCrcString() string {
return "51077d14"
}
func (*BfdUDPSessionDump) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPSessionSetFlags represents VPP binary API message 'bfd_udp_session_set_flags':
type BfdUDPSessionSetFlags struct {
SwIfIndex uint32
LocalAddr []byte `struc:"[16]byte"`
PeerAddr []byte `struc:"[16]byte"`
IsIPv6 uint8
AdminUpDown uint8
}
func (*BfdUDPSessionSetFlags) GetMessageName() string {
return "bfd_udp_session_set_flags"
}
func (*BfdUDPSessionSetFlags) GetCrcString() string {
return "667d6e7c"
}
func (*BfdUDPSessionSetFlags) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPSessionSetFlagsReply represents VPP binary API message 'bfd_udp_session_set_flags_reply':
type BfdUDPSessionSetFlagsReply struct {
Retval int32
}
func (*BfdUDPSessionSetFlagsReply) GetMessageName() string {
return "bfd_udp_session_set_flags_reply"
}
func (*BfdUDPSessionSetFlagsReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPSessionSetFlagsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// BfdUDPSetEchoSource represents VPP binary API message 'bfd_udp_set_echo_source':
type BfdUDPSetEchoSource struct {
SwIfIndex uint32
}
func (*BfdUDPSetEchoSource) GetMessageName() string {
return "bfd_udp_set_echo_source"
}
func (*BfdUDPSetEchoSource) GetCrcString() string {
return "529cb13f"
}
func (*BfdUDPSetEchoSource) GetMessageType() api.MessageType {
return api.RequestMessage
}
// BfdUDPSetEchoSourceReply represents VPP binary API message 'bfd_udp_set_echo_source_reply':
type BfdUDPSetEchoSourceReply struct {
Retval int32
}
func (*BfdUDPSetEchoSourceReply) GetMessageName() string {
return "bfd_udp_set_echo_source_reply"
}
func (*BfdUDPSetEchoSourceReply) GetCrcString() string {
return "e8d4e804"
}
func (*BfdUDPSetEchoSourceReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
// WantBfdEvents represents VPP binary API message 'want_bfd_events':
type WantBfdEvents struct {
EnableDisable uint32
PID uint32
}
func (*WantBfdEvents) GetMessageName() string {
return "want_bfd_events"
}
func (*WantBfdEvents) GetCrcString() string {
return "476f5a08"
}
func (*WantBfdEvents) GetMessageType() api.MessageType {
return api.RequestMessage
}
// WantBfdEventsReply represents VPP binary API message 'want_bfd_events_reply':
type WantBfdEventsReply struct {
Retval int32
}
func (*WantBfdEventsReply) GetMessageName() string {
return "want_bfd_events_reply"
}
func (*WantBfdEventsReply) GetCrcString() string {
return "e8d4e804"
}
func (*WantBfdEventsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
func init() {
api.RegisterMessage((*BfdAuthDelKey)(nil), "bfd.BfdAuthDelKey")
api.RegisterMessage((*BfdAuthDelKeyReply)(nil), "bfd.BfdAuthDelKeyReply")
api.RegisterMessage((*BfdAuthKeysDetails)(nil), "bfd.BfdAuthKeysDetails")
api.RegisterMessage((*BfdAuthKeysDump)(nil), "bfd.BfdAuthKeysDump")
api.RegisterMessage((*BfdAuthSetKey)(nil), "bfd.BfdAuthSetKey")
api.RegisterMessage((*BfdAuthSetKeyReply)(nil), "bfd.BfdAuthSetKeyReply")
api.RegisterMessage((*BfdUDPAdd)(nil), "bfd.BfdUDPAdd")
api.RegisterMessage((*BfdUDPAddReply)(nil), "bfd.BfdUDPAddReply")
api.RegisterMessage((*BfdUDPAuthActivate)(nil), "bfd.BfdUDPAuthActivate")
api.RegisterMessage((*BfdUDPAuthActivateReply)(nil), "bfd.BfdUDPAuthActivateReply")
api.RegisterMessage((*BfdUDPAuthDeactivate)(nil), "bfd.BfdUDPAuthDeactivate")
api.RegisterMessage((*BfdUDPAuthDeactivateReply)(nil), "bfd.BfdUDPAuthDeactivateReply")
api.RegisterMessage((*BfdUDPDel)(nil), "bfd.BfdUDPDel")
api.RegisterMessage((*BfdUDPDelEchoSource)(nil), "bfd.BfdUDPDelEchoSource")
api.RegisterMessage((*BfdUDPDelEchoSourceReply)(nil), "bfd.BfdUDPDelEchoSourceReply")
api.RegisterMessage((*BfdUDPDelReply)(nil), "bfd.BfdUDPDelReply")
api.RegisterMessage((*BfdUDPGetEchoSource)(nil), "bfd.BfdUDPGetEchoSource")
api.RegisterMessage((*BfdUDPGetEchoSourceReply)(nil), "bfd.BfdUDPGetEchoSourceReply")
api.RegisterMessage((*BfdUDPMod)(nil), "bfd.BfdUDPMod")
api.RegisterMessage((*BfdUDPModReply)(nil), "bfd.BfdUDPModReply")
api.RegisterMessage((*BfdUDPSessionDetails)(nil), "bfd.BfdUDPSessionDetails")
api.RegisterMessage((*BfdUDPSessionDump)(nil), "bfd.BfdUDPSessionDump")
api.RegisterMessage((*BfdUDPSessionSetFlags)(nil), "bfd.BfdUDPSessionSetFlags")
api.RegisterMessage((*BfdUDPSessionSetFlagsReply)(nil), "bfd.BfdUDPSessionSetFlagsReply")
api.RegisterMessage((*BfdUDPSetEchoSource)(nil), "bfd.BfdUDPSetEchoSource")
api.RegisterMessage((*BfdUDPSetEchoSourceReply)(nil), "bfd.BfdUDPSetEchoSourceReply")
api.RegisterMessage((*WantBfdEvents)(nil), "bfd.WantBfdEvents")
api.RegisterMessage((*WantBfdEventsReply)(nil), "bfd.WantBfdEventsReply")
}
var Messages = []api.Message{
(*BfdAuthDelKey)(nil),
(*BfdAuthDelKeyReply)(nil),
(*BfdAuthKeysDetails)(nil),
(*BfdAuthKeysDump)(nil),
(*BfdAuthSetKey)(nil),
(*BfdAuthSetKeyReply)(nil),
(*BfdUDPAdd)(nil),
(*BfdUDPAddReply)(nil),
(*BfdUDPAuthActivate)(nil),
(*BfdUDPAuthActivateReply)(nil),
(*BfdUDPAuthDeactivate)(nil),
(*BfdUDPAuthDeactivateReply)(nil),
(*BfdUDPDel)(nil),
(*BfdUDPDelEchoSource)(nil),
(*BfdUDPDelEchoSourceReply)(nil),
(*BfdUDPDelReply)(nil),
(*BfdUDPGetEchoSource)(nil),
(*BfdUDPGetEchoSourceReply)(nil),
(*BfdUDPMod)(nil),
(*BfdUDPModReply)(nil),
(*BfdUDPSessionDetails)(nil),
(*BfdUDPSessionDump)(nil),
(*BfdUDPSessionSetFlags)(nil),
(*BfdUDPSessionSetFlagsReply)(nil),
(*BfdUDPSetEchoSource)(nil),
(*BfdUDPSetEchoSourceReply)(nil),
(*WantBfdEvents)(nil),
(*WantBfdEventsReply)(nil),
}