Generator improvements and cleanup
[govpp.git] / examples / bin_api / interfaces / interfaces.ba.go
1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 //  source: interface.api.json
3
4 /*
5  Package interfaces is a generated from VPP binary API module 'interface'.
6
7  It contains following objects:
8          25 services
9           1 alias
10          51 messages
11 */
12 package interfaces
13
14 import api "git.fd.io/govpp.git/api"
15 import struc "github.com/lunixbochs/struc"
16 import bytes "bytes"
17
18 // Reference imports to suppress errors if they are not otherwise used.
19 var _ = api.RegisterMessage
20 var _ = struc.Pack
21 var _ = bytes.NewBuffer
22
23 // Services represents VPP binary API services:
24 type Services interface {
25         DumpSwInterface(*SwInterfaceDump) ([]*SwInterfaceDetails, error)
26         DumpSwInterfaceRxPlacement(*SwInterfaceRxPlacementDump) ([]*SwInterfaceRxPlacementDetails, error)
27         CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
28         CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
29         CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
30         CreateSubif(*CreateSubif) (*CreateSubifReply, error)
31         CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
32         DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
33         DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
34         HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
35         InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
36         SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
37         SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
38         SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
39         SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
40         SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
41         SwInterfaceSetIPDirectedBroadcast(*SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
42         SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
43         SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
44         SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
45         SwInterfaceSetRxPlacement(*SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
46         SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
47         SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
48         SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
49         WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
50 }
51
52 /* Aliases */
53
54 // InterfaceIndex represents VPP binary API alias 'interface_index':
55 type InterfaceIndex uint32
56
57 /* Messages */
58
59 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats':
60 type CollectDetailedInterfaceStats struct {
61         SwIfIndex     uint32
62         EnableDisable uint8
63 }
64
65 func (*CollectDetailedInterfaceStats) GetMessageName() string {
66         return "collect_detailed_interface_stats"
67 }
68 func (*CollectDetailedInterfaceStats) GetCrcString() string {
69         return "69d24598"
70 }
71 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
72         return api.RequestMessage
73 }
74
75 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply':
76 type CollectDetailedInterfaceStatsReply struct {
77         Retval int32
78 }
79
80 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
81         return "collect_detailed_interface_stats_reply"
82 }
83 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
84         return "e8d4e804"
85 }
86 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
87         return api.ReplyMessage
88 }
89
90 // CreateLoopback represents VPP binary API message 'create_loopback':
91 type CreateLoopback struct {
92         MacAddress []byte `struc:"[6]byte"`
93 }
94
95 func (*CreateLoopback) GetMessageName() string {
96         return "create_loopback"
97 }
98 func (*CreateLoopback) GetCrcString() string {
99         return "3b54129c"
100 }
101 func (*CreateLoopback) GetMessageType() api.MessageType {
102         return api.RequestMessage
103 }
104
105 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance':
106 type CreateLoopbackInstance struct {
107         MacAddress   []byte `struc:"[6]byte"`
108         IsSpecified  uint8
109         UserInstance uint32
110 }
111
112 func (*CreateLoopbackInstance) GetMessageName() string {
113         return "create_loopback_instance"
114 }
115 func (*CreateLoopbackInstance) GetCrcString() string {
116         return "7bbd53b6"
117 }
118 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
119         return api.RequestMessage
120 }
121
122 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply':
123 type CreateLoopbackInstanceReply struct {
124         Retval    int32
125         SwIfIndex uint32
126 }
127
128 func (*CreateLoopbackInstanceReply) GetMessageName() string {
129         return "create_loopback_instance_reply"
130 }
131 func (*CreateLoopbackInstanceReply) GetCrcString() string {
132         return "fda5941f"
133 }
134 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
135         return api.ReplyMessage
136 }
137
138 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply':
139 type CreateLoopbackReply struct {
140         Retval    int32
141         SwIfIndex uint32
142 }
143
144 func (*CreateLoopbackReply) GetMessageName() string {
145         return "create_loopback_reply"
146 }
147 func (*CreateLoopbackReply) GetCrcString() string {
148         return "fda5941f"
149 }
150 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
151         return api.ReplyMessage
152 }
153
154 // CreateSubif represents VPP binary API message 'create_subif':
155 type CreateSubif struct {
156         SwIfIndex      uint32
157         SubID          uint32
158         NoTags         uint8
159         OneTag         uint8
160         TwoTags        uint8
161         Dot1ad         uint8
162         ExactMatch     uint8
163         DefaultSub     uint8
164         OuterVlanIDAny uint8
165         InnerVlanIDAny uint8
166         OuterVlanID    uint16
167         InnerVlanID    uint16
168 }
169
170 func (*CreateSubif) GetMessageName() string {
171         return "create_subif"
172 }
173 func (*CreateSubif) GetCrcString() string {
174         return "86cfe408"
175 }
176 func (*CreateSubif) GetMessageType() api.MessageType {
177         return api.RequestMessage
178 }
179
180 // CreateSubifReply represents VPP binary API message 'create_subif_reply':
181 type CreateSubifReply struct {
182         Retval    int32
183         SwIfIndex uint32
184 }
185
186 func (*CreateSubifReply) GetMessageName() string {
187         return "create_subif_reply"
188 }
189 func (*CreateSubifReply) GetCrcString() string {
190         return "fda5941f"
191 }
192 func (*CreateSubifReply) GetMessageType() api.MessageType {
193         return api.ReplyMessage
194 }
195
196 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif':
197 type CreateVlanSubif struct {
198         SwIfIndex uint32
199         VlanID    uint32
200 }
201
202 func (*CreateVlanSubif) GetMessageName() string {
203         return "create_vlan_subif"
204 }
205 func (*CreateVlanSubif) GetCrcString() string {
206         return "70cadeda"
207 }
208 func (*CreateVlanSubif) GetMessageType() api.MessageType {
209         return api.RequestMessage
210 }
211
212 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply':
213 type CreateVlanSubifReply struct {
214         Retval    int32
215         SwIfIndex uint32
216 }
217
218 func (*CreateVlanSubifReply) GetMessageName() string {
219         return "create_vlan_subif_reply"
220 }
221 func (*CreateVlanSubifReply) GetCrcString() string {
222         return "fda5941f"
223 }
224 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
225         return api.ReplyMessage
226 }
227
228 // DeleteLoopback represents VPP binary API message 'delete_loopback':
229 type DeleteLoopback struct {
230         SwIfIndex uint32
231 }
232
233 func (*DeleteLoopback) GetMessageName() string {
234         return "delete_loopback"
235 }
236 func (*DeleteLoopback) GetCrcString() string {
237         return "529cb13f"
238 }
239 func (*DeleteLoopback) GetMessageType() api.MessageType {
240         return api.RequestMessage
241 }
242
243 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply':
244 type DeleteLoopbackReply struct {
245         Retval int32
246 }
247
248 func (*DeleteLoopbackReply) GetMessageName() string {
249         return "delete_loopback_reply"
250 }
251 func (*DeleteLoopbackReply) GetCrcString() string {
252         return "e8d4e804"
253 }
254 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
255         return api.ReplyMessage
256 }
257
258 // DeleteSubif represents VPP binary API message 'delete_subif':
259 type DeleteSubif struct {
260         SwIfIndex uint32
261 }
262
263 func (*DeleteSubif) GetMessageName() string {
264         return "delete_subif"
265 }
266 func (*DeleteSubif) GetCrcString() string {
267         return "529cb13f"
268 }
269 func (*DeleteSubif) GetMessageType() api.MessageType {
270         return api.RequestMessage
271 }
272
273 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply':
274 type DeleteSubifReply struct {
275         Retval int32
276 }
277
278 func (*DeleteSubifReply) GetMessageName() string {
279         return "delete_subif_reply"
280 }
281 func (*DeleteSubifReply) GetCrcString() string {
282         return "e8d4e804"
283 }
284 func (*DeleteSubifReply) GetMessageType() api.MessageType {
285         return api.ReplyMessage
286 }
287
288 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu':
289 type HwInterfaceSetMtu struct {
290         SwIfIndex uint32
291         Mtu       uint16
292 }
293
294 func (*HwInterfaceSetMtu) GetMessageName() string {
295         return "hw_interface_set_mtu"
296 }
297 func (*HwInterfaceSetMtu) GetCrcString() string {
298         return "132da1e7"
299 }
300 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
301         return api.RequestMessage
302 }
303
304 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply':
305 type HwInterfaceSetMtuReply struct {
306         Retval int32
307 }
308
309 func (*HwInterfaceSetMtuReply) GetMessageName() string {
310         return "hw_interface_set_mtu_reply"
311 }
312 func (*HwInterfaceSetMtuReply) GetCrcString() string {
313         return "e8d4e804"
314 }
315 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
316         return api.ReplyMessage
317 }
318
319 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber':
320 type InterfaceNameRenumber struct {
321         SwIfIndex          uint32
322         NewShowDevInstance uint32
323 }
324
325 func (*InterfaceNameRenumber) GetMessageName() string {
326         return "interface_name_renumber"
327 }
328 func (*InterfaceNameRenumber) GetCrcString() string {
329         return "39194269"
330 }
331 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
332         return api.RequestMessage
333 }
334
335 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply':
336 type InterfaceNameRenumberReply struct {
337         Retval int32
338 }
339
340 func (*InterfaceNameRenumberReply) GetMessageName() string {
341         return "interface_name_renumber_reply"
342 }
343 func (*InterfaceNameRenumberReply) GetCrcString() string {
344         return "e8d4e804"
345 }
346 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
347         return api.ReplyMessage
348 }
349
350 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address':
351 type SwInterfaceAddDelAddress struct {
352         SwIfIndex     uint32
353         IsAdd         uint8
354         IsIPv6        uint8
355         DelAll        uint8
356         AddressLength uint8
357         Address       []byte `struc:"[16]byte"`
358 }
359
360 func (*SwInterfaceAddDelAddress) GetMessageName() string {
361         return "sw_interface_add_del_address"
362 }
363 func (*SwInterfaceAddDelAddress) GetCrcString() string {
364         return "7b583179"
365 }
366 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
367         return api.RequestMessage
368 }
369
370 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply':
371 type SwInterfaceAddDelAddressReply struct {
372         Retval int32
373 }
374
375 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
376         return "sw_interface_add_del_address_reply"
377 }
378 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
379         return "e8d4e804"
380 }
381 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
382         return api.ReplyMessage
383 }
384
385 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats':
386 type SwInterfaceClearStats struct {
387         SwIfIndex uint32
388 }
389
390 func (*SwInterfaceClearStats) GetMessageName() string {
391         return "sw_interface_clear_stats"
392 }
393 func (*SwInterfaceClearStats) GetCrcString() string {
394         return "529cb13f"
395 }
396 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
397         return api.RequestMessage
398 }
399
400 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply':
401 type SwInterfaceClearStatsReply struct {
402         Retval int32
403 }
404
405 func (*SwInterfaceClearStatsReply) GetMessageName() string {
406         return "sw_interface_clear_stats_reply"
407 }
408 func (*SwInterfaceClearStatsReply) GetCrcString() string {
409         return "e8d4e804"
410 }
411 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
412         return api.ReplyMessage
413 }
414
415 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details':
416 type SwInterfaceDetails struct {
417         SwIfIndex         uint32
418         SupSwIfIndex      uint32
419         L2AddressLength   uint32
420         L2Address         []byte `struc:"[8]byte"`
421         InterfaceName     []byte `struc:"[64]byte"`
422         AdminUpDown       uint8
423         LinkUpDown        uint8
424         LinkDuplex        uint8
425         LinkSpeed         uint32
426         LinkMtu           uint16
427         Mtu               []uint32 `struc:"[4]uint32"`
428         SubID             uint32
429         SubDot1ad         uint8
430         SubDot1ah         uint8
431         SubNumberOfTags   uint8
432         SubOuterVlanID    uint16
433         SubInnerVlanID    uint16
434         SubExactMatch     uint8
435         SubDefault        uint8
436         SubOuterVlanIDAny uint8
437         SubInnerVlanIDAny uint8
438         VtrOp             uint32
439         VtrPushDot1q      uint32
440         VtrTag1           uint32
441         VtrTag2           uint32
442         Tag               []byte `struc:"[64]byte"`
443         OuterTag          uint16
444         BDmac             []byte `struc:"[6]byte"`
445         BSmac             []byte `struc:"[6]byte"`
446         BVlanid           uint16
447         ISid              uint32
448 }
449
450 func (*SwInterfaceDetails) GetMessageName() string {
451         return "sw_interface_details"
452 }
453 func (*SwInterfaceDetails) GetCrcString() string {
454         return "e4ee7eb6"
455 }
456 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
457         return api.ReplyMessage
458 }
459
460 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump':
461 type SwInterfaceDump struct {
462         NameFilterValid uint8
463         NameFilter      []byte `struc:"[49]byte"`
464 }
465
466 func (*SwInterfaceDump) GetMessageName() string {
467         return "sw_interface_dump"
468 }
469 func (*SwInterfaceDump) GetCrcString() string {
470         return "63f5e3b7"
471 }
472 func (*SwInterfaceDump) GetMessageType() api.MessageType {
473         return api.RequestMessage
474 }
475
476 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event':
477 type SwInterfaceEvent struct {
478         PID         uint32
479         SwIfIndex   uint32
480         AdminUpDown uint8
481         LinkUpDown  uint8
482         Deleted     uint8
483 }
484
485 func (*SwInterfaceEvent) GetMessageName() string {
486         return "sw_interface_event"
487 }
488 func (*SwInterfaceEvent) GetCrcString() string {
489         return "bf9938e4"
490 }
491 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
492         return api.EventMessage
493 }
494
495 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address':
496 type SwInterfaceGetMacAddress struct {
497         SwIfIndex uint32
498 }
499
500 func (*SwInterfaceGetMacAddress) GetMessageName() string {
501         return "sw_interface_get_mac_address"
502 }
503 func (*SwInterfaceGetMacAddress) GetCrcString() string {
504         return "529cb13f"
505 }
506 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
507         return api.RequestMessage
508 }
509
510 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply':
511 type SwInterfaceGetMacAddressReply struct {
512         Retval     int32
513         MacAddress []byte `struc:"[6]byte"`
514 }
515
516 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
517         return "sw_interface_get_mac_address_reply"
518 }
519 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
520         return "8ea538d3"
521 }
522 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
523         return api.ReplyMessage
524 }
525
526 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table':
527 type SwInterfaceGetTable struct {
528         SwIfIndex uint32
529         IsIPv6    uint8
530 }
531
532 func (*SwInterfaceGetTable) GetMessageName() string {
533         return "sw_interface_get_table"
534 }
535 func (*SwInterfaceGetTable) GetCrcString() string {
536         return "6b7bcd0a"
537 }
538 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
539         return api.RequestMessage
540 }
541
542 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply':
543 type SwInterfaceGetTableReply struct {
544         Retval int32
545         VrfID  uint32
546 }
547
548 func (*SwInterfaceGetTableReply) GetMessageName() string {
549         return "sw_interface_get_table_reply"
550 }
551 func (*SwInterfaceGetTableReply) GetCrcString() string {
552         return "a6eb0109"
553 }
554 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
555         return api.ReplyMessage
556 }
557
558 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details':
559 type SwInterfaceRxPlacementDetails struct {
560         SwIfIndex uint32
561         QueueID   uint32
562         WorkerID  uint32
563         Mode      uint8
564 }
565
566 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
567         return "sw_interface_rx_placement_details"
568 }
569 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
570         return "0e9e33f4"
571 }
572 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
573         return api.RequestMessage
574 }
575
576 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump':
577 type SwInterfaceRxPlacementDump struct {
578         SwIfIndex uint32
579 }
580
581 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
582         return "sw_interface_rx_placement_dump"
583 }
584 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
585         return "529cb13f"
586 }
587 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
588         return api.RequestMessage
589 }
590
591 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags':
592 type SwInterfaceSetFlags struct {
593         SwIfIndex   uint32
594         AdminUpDown uint8
595 }
596
597 func (*SwInterfaceSetFlags) GetMessageName() string {
598         return "sw_interface_set_flags"
599 }
600 func (*SwInterfaceSetFlags) GetCrcString() string {
601         return "555485f5"
602 }
603 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
604         return api.RequestMessage
605 }
606
607 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply':
608 type SwInterfaceSetFlagsReply struct {
609         Retval int32
610 }
611
612 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
613         return "sw_interface_set_flags_reply"
614 }
615 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
616         return "e8d4e804"
617 }
618 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
619         return api.ReplyMessage
620 }
621
622 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast':
623 type SwInterfaceSetIPDirectedBroadcast struct {
624         SwIfIndex uint32
625         Enable    uint8
626 }
627
628 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
629         return "sw_interface_set_ip_directed_broadcast"
630 }
631 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
632         return "a36fadc0"
633 }
634 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
635         return api.RequestMessage
636 }
637
638 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply':
639 type SwInterfaceSetIPDirectedBroadcastReply struct {
640         Retval int32
641 }
642
643 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
644         return "sw_interface_set_ip_directed_broadcast_reply"
645 }
646 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
647         return "e8d4e804"
648 }
649 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
650         return api.ReplyMessage
651 }
652
653 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address':
654 type SwInterfaceSetMacAddress struct {
655         SwIfIndex  uint32
656         MacAddress []byte `struc:"[6]byte"`
657 }
658
659 func (*SwInterfaceSetMacAddress) GetMessageName() string {
660         return "sw_interface_set_mac_address"
661 }
662 func (*SwInterfaceSetMacAddress) GetCrcString() string {
663         return "eed5dfca"
664 }
665 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
666         return api.RequestMessage
667 }
668
669 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply':
670 type SwInterfaceSetMacAddressReply struct {
671         Retval int32
672 }
673
674 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
675         return "sw_interface_set_mac_address_reply"
676 }
677 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
678         return "e8d4e804"
679 }
680 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
681         return api.ReplyMessage
682 }
683
684 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu':
685 type SwInterfaceSetMtu struct {
686         SwIfIndex uint32
687         Mtu       []uint32 `struc:"[4]uint32"`
688 }
689
690 func (*SwInterfaceSetMtu) GetMessageName() string {
691         return "sw_interface_set_mtu"
692 }
693 func (*SwInterfaceSetMtu) GetCrcString() string {
694         return "d0008db8"
695 }
696 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
697         return api.RequestMessage
698 }
699
700 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply':
701 type SwInterfaceSetMtuReply struct {
702         Retval int32
703 }
704
705 func (*SwInterfaceSetMtuReply) GetMessageName() string {
706         return "sw_interface_set_mtu_reply"
707 }
708 func (*SwInterfaceSetMtuReply) GetCrcString() string {
709         return "e8d4e804"
710 }
711 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
712         return api.ReplyMessage
713 }
714
715 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode':
716 type SwInterfaceSetRxMode struct {
717         SwIfIndex    uint32
718         QueueIDValid uint8
719         QueueID      uint32
720         Mode         uint8
721 }
722
723 func (*SwInterfaceSetRxMode) GetMessageName() string {
724         return "sw_interface_set_rx_mode"
725 }
726 func (*SwInterfaceSetRxMode) GetCrcString() string {
727         return "2a1cc58c"
728 }
729 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
730         return api.RequestMessage
731 }
732
733 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply':
734 type SwInterfaceSetRxModeReply struct {
735         Retval int32
736 }
737
738 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
739         return "sw_interface_set_rx_mode_reply"
740 }
741 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
742         return "e8d4e804"
743 }
744 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
745         return api.ReplyMessage
746 }
747
748 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement':
749 type SwInterfaceSetRxPlacement struct {
750         SwIfIndex uint32
751         QueueID   uint32
752         WorkerID  uint32
753         IsMain    uint8
754 }
755
756 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
757         return "sw_interface_set_rx_placement"
758 }
759 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
760         return "4ef4377d"
761 }
762 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
763         return api.RequestMessage
764 }
765
766 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply':
767 type SwInterfaceSetRxPlacementReply struct {
768         Retval int32
769 }
770
771 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
772         return "sw_interface_set_rx_placement_reply"
773 }
774 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
775         return "e8d4e804"
776 }
777 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
778         return api.ReplyMessage
779 }
780
781 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table':
782 type SwInterfaceSetTable struct {
783         SwIfIndex uint32
784         IsIPv6    uint8
785         VrfID     uint32
786 }
787
788 func (*SwInterfaceSetTable) GetMessageName() string {
789         return "sw_interface_set_table"
790 }
791 func (*SwInterfaceSetTable) GetCrcString() string {
792         return "acb25d89"
793 }
794 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
795         return api.RequestMessage
796 }
797
798 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply':
799 type SwInterfaceSetTableReply struct {
800         Retval int32
801 }
802
803 func (*SwInterfaceSetTableReply) GetMessageName() string {
804         return "sw_interface_set_table_reply"
805 }
806 func (*SwInterfaceSetTableReply) GetCrcString() string {
807         return "e8d4e804"
808 }
809 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
810         return api.ReplyMessage
811 }
812
813 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered':
814 type SwInterfaceSetUnnumbered struct {
815         SwIfIndex           uint32
816         UnnumberedSwIfIndex uint32
817         IsAdd               uint8
818 }
819
820 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
821         return "sw_interface_set_unnumbered"
822 }
823 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
824         return "a2c1bbda"
825 }
826 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
827         return api.RequestMessage
828 }
829
830 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply':
831 type SwInterfaceSetUnnumberedReply struct {
832         Retval int32
833 }
834
835 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
836         return "sw_interface_set_unnumbered_reply"
837 }
838 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
839         return "e8d4e804"
840 }
841 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
842         return api.ReplyMessage
843 }
844
845 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del':
846 type SwInterfaceTagAddDel struct {
847         IsAdd     uint8
848         SwIfIndex uint32
849         Tag       []byte `struc:"[64]byte"`
850 }
851
852 func (*SwInterfaceTagAddDel) GetMessageName() string {
853         return "sw_interface_tag_add_del"
854 }
855 func (*SwInterfaceTagAddDel) GetCrcString() string {
856         return "14cc636c"
857 }
858 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
859         return api.RequestMessage
860 }
861
862 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply':
863 type SwInterfaceTagAddDelReply struct {
864         Retval int32
865 }
866
867 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
868         return "sw_interface_tag_add_del_reply"
869 }
870 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
871         return "e8d4e804"
872 }
873 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
874         return api.ReplyMessage
875 }
876
877 // WantInterfaceEvents represents VPP binary API message 'want_interface_events':
878 type WantInterfaceEvents struct {
879         EnableDisable uint32
880         PID           uint32
881 }
882
883 func (*WantInterfaceEvents) GetMessageName() string {
884         return "want_interface_events"
885 }
886 func (*WantInterfaceEvents) GetCrcString() string {
887         return "476f5a08"
888 }
889 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
890         return api.RequestMessage
891 }
892
893 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply':
894 type WantInterfaceEventsReply struct {
895         Retval int32
896 }
897
898 func (*WantInterfaceEventsReply) GetMessageName() string {
899         return "want_interface_events_reply"
900 }
901 func (*WantInterfaceEventsReply) GetCrcString() string {
902         return "e8d4e804"
903 }
904 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
905         return api.ReplyMessage
906 }
907
908 func init() {
909         api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
910         api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
911         api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
912         api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
913         api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
914         api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
915         api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
916         api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
917         api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
918         api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
919         api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
920         api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
921         api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
922         api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
923         api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
924         api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
925         api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
926         api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
927         api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
928         api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
929         api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
930         api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
931         api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
932         api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
933         api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
934         api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
935         api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
936         api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
937         api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
938         api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
939         api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
940         api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
941         api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
942         api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
943         api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
944         api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
945         api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
946         api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
947         api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
948         api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
949         api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
950         api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
951         api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
952         api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
953         api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
954         api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
955         api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
956         api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
957         api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
958         api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
959         api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
960 }