Omit message factory and line numbers from generated output
[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          45 messages
9           3 types
10          22 services
11
12 */
13 package interfaces
14
15 import "git.fd.io/govpp.git/api"
16 import "github.com/lunixbochs/struc"
17 import "bytes"
18
19 // Reference imports to suppress errors if they are not otherwise used.
20 var _ = api.RegisterMessage
21 var _ = struc.Pack
22 var _ = bytes.NewBuffer
23
24 /* Types */
25
26 // VlibCounter represents the VPP binary API type 'vlib_counter'.
27 //
28 //            "vlib_counter",
29 //            [
30 //                "u64",
31 //                "packets"
32 //            ],
33 //            [
34 //                "u64",
35 //                "bytes"
36 //            ],
37 //            {
38 //                "crc": "0xce2325a2"
39 //            }
40 //
41 type VlibCounter struct {
42         Packets uint64
43         Bytes   uint64
44 }
45
46 func (*VlibCounter) GetTypeName() string {
47         return "vlib_counter"
48 }
49 func (*VlibCounter) GetCrcString() string {
50         return "ce2325a2"
51 }
52
53 // VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'.
54 //
55 //            "vnet_combined_counter",
56 //            [
57 //                "u32",
58 //                "sw_if_index"
59 //            ],
60 //            [
61 //                "u64",
62 //                "rx_packets"
63 //            ],
64 //            [
65 //                "u64",
66 //                "rx_bytes"
67 //            ],
68 //            [
69 //                "u64",
70 //                "rx_unicast_packets"
71 //            ],
72 //            [
73 //                "u64",
74 //                "rx_unicast_bytes"
75 //            ],
76 //            [
77 //                "u64",
78 //                "rx_multicast_packets"
79 //            ],
80 //            [
81 //                "u64",
82 //                "rx_multicast_bytes"
83 //            ],
84 //            [
85 //                "u64",
86 //                "rx_broadcast_packets"
87 //            ],
88 //            [
89 //                "u64",
90 //                "rx_broadcast_bytes"
91 //            ],
92 //            [
93 //                "u64",
94 //                "tx_packets"
95 //            ],
96 //            [
97 //                "u64",
98 //                "tx_bytes"
99 //            ],
100 //            [
101 //                "u64",
102 //                "tx_unicast_packets"
103 //            ],
104 //            [
105 //                "u64",
106 //                "tx_unicast_bytes"
107 //            ],
108 //            [
109 //                "u64",
110 //                "tx_multicast_packets"
111 //            ],
112 //            [
113 //                "u64",
114 //                "tx_multicast_bytes"
115 //            ],
116 //            [
117 //                "u64",
118 //                "tx_broadcast_packets"
119 //            ],
120 //            [
121 //                "u64",
122 //                "tx_broadcast_bytes"
123 //            ],
124 //            {
125 //                "crc": "0x20905ca4"
126 //            }
127 //
128 type VnetCombinedCounter struct {
129         SwIfIndex          uint32
130         RxPackets          uint64
131         RxBytes            uint64
132         RxUnicastPackets   uint64
133         RxUnicastBytes     uint64
134         RxMulticastPackets uint64
135         RxMulticastBytes   uint64
136         RxBroadcastPackets uint64
137         RxBroadcastBytes   uint64
138         TxPackets          uint64
139         TxBytes            uint64
140         TxUnicastPackets   uint64
141         TxUnicastBytes     uint64
142         TxMulticastPackets uint64
143         TxMulticastBytes   uint64
144         TxBroadcastPackets uint64
145         TxBroadcastBytes   uint64
146 }
147
148 func (*VnetCombinedCounter) GetTypeName() string {
149         return "vnet_combined_counter"
150 }
151 func (*VnetCombinedCounter) GetCrcString() string {
152         return "20905ca4"
153 }
154
155 // VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'.
156 //
157 //            "vnet_simple_counter",
158 //            [
159 //                "u32",
160 //                "sw_if_index"
161 //            ],
162 //            [
163 //                "u64",
164 //                "drop"
165 //            ],
166 //            [
167 //                "u64",
168 //                "punt"
169 //            ],
170 //            [
171 //                "u64",
172 //                "rx_ip4"
173 //            ],
174 //            [
175 //                "u64",
176 //                "rx_ip6"
177 //            ],
178 //            [
179 //                "u64",
180 //                "rx_no_buffer"
181 //            ],
182 //            [
183 //                "u64",
184 //                "rx_miss"
185 //            ],
186 //            [
187 //                "u64",
188 //                "rx_error"
189 //            ],
190 //            [
191 //                "u64",
192 //                "tx_error"
193 //            ],
194 //            [
195 //                "u64",
196 //                "rx_mpls"
197 //            ],
198 //            {
199 //                "crc": "0x8bd65e2d"
200 //            }
201 //
202 type VnetSimpleCounter struct {
203         SwIfIndex  uint32
204         Drop       uint64
205         Punt       uint64
206         RxIP4      uint64
207         RxIP6      uint64
208         RxNoBuffer uint64
209         RxMiss     uint64
210         RxError    uint64
211         TxError    uint64
212         RxMpls     uint64
213 }
214
215 func (*VnetSimpleCounter) GetTypeName() string {
216         return "vnet_simple_counter"
217 }
218 func (*VnetSimpleCounter) GetCrcString() string {
219         return "8bd65e2d"
220 }
221
222 /* Messages */
223
224 // SwInterfaceSetFlags represents the VPP binary API message 'sw_interface_set_flags'.
225 //
226 //            "sw_interface_set_flags",
227 //            [
228 //                "u16",
229 //                "_vl_msg_id"
230 //            ],
231 //            [
232 //                "u32",
233 //                "client_index"
234 //            ],
235 //            [
236 //                "u32",
237 //                "context"
238 //            ],
239 //            [
240 //                "u32",
241 //                "sw_if_index"
242 //            ],
243 //            [
244 //                "u8",
245 //                "admin_up_down"
246 //            ],
247 //            {
248 //                "crc": "0x555485f5"
249 //            }
250 //
251 type SwInterfaceSetFlags struct {
252         SwIfIndex   uint32
253         AdminUpDown uint8
254 }
255
256 func (*SwInterfaceSetFlags) GetMessageName() string {
257         return "sw_interface_set_flags"
258 }
259 func (*SwInterfaceSetFlags) GetCrcString() string {
260         return "555485f5"
261 }
262 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
263         return api.RequestMessage
264 }
265
266 // SwInterfaceSetFlagsReply represents the VPP binary API message 'sw_interface_set_flags_reply'.
267 //
268 //            "sw_interface_set_flags_reply",
269 //            [
270 //                "u16",
271 //                "_vl_msg_id"
272 //            ],
273 //            [
274 //                "u32",
275 //                "context"
276 //            ],
277 //            [
278 //                "i32",
279 //                "retval"
280 //            ],
281 //            {
282 //                "crc": "0xe8d4e804"
283 //            }
284 //
285 type SwInterfaceSetFlagsReply struct {
286         Retval int32
287 }
288
289 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
290         return "sw_interface_set_flags_reply"
291 }
292 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
293         return "e8d4e804"
294 }
295 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
296         return api.ReplyMessage
297 }
298
299 // HwInterfaceSetMtu represents the VPP binary API message 'hw_interface_set_mtu'.
300 //
301 //            "hw_interface_set_mtu",
302 //            [
303 //                "u16",
304 //                "_vl_msg_id"
305 //            ],
306 //            [
307 //                "u32",
308 //                "client_index"
309 //            ],
310 //            [
311 //                "u32",
312 //                "context"
313 //            ],
314 //            [
315 //                "u32",
316 //                "sw_if_index"
317 //            ],
318 //            [
319 //                "u16",
320 //                "mtu"
321 //            ],
322 //            {
323 //                "crc": "0x132da1e7"
324 //            }
325 //
326 type HwInterfaceSetMtu struct {
327         SwIfIndex uint32
328         Mtu       uint16
329 }
330
331 func (*HwInterfaceSetMtu) GetMessageName() string {
332         return "hw_interface_set_mtu"
333 }
334 func (*HwInterfaceSetMtu) GetCrcString() string {
335         return "132da1e7"
336 }
337 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
338         return api.RequestMessage
339 }
340
341 // HwInterfaceSetMtuReply represents the VPP binary API message 'hw_interface_set_mtu_reply'.
342 //
343 //            "hw_interface_set_mtu_reply",
344 //            [
345 //                "u16",
346 //                "_vl_msg_id"
347 //            ],
348 //            [
349 //                "u32",
350 //                "context"
351 //            ],
352 //            [
353 //                "i32",
354 //                "retval"
355 //            ],
356 //            {
357 //                "crc": "0xe8d4e804"
358 //            }
359 //
360 type HwInterfaceSetMtuReply struct {
361         Retval int32
362 }
363
364 func (*HwInterfaceSetMtuReply) GetMessageName() string {
365         return "hw_interface_set_mtu_reply"
366 }
367 func (*HwInterfaceSetMtuReply) GetCrcString() string {
368         return "e8d4e804"
369 }
370 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
371         return api.ReplyMessage
372 }
373
374 // SwInterfaceSetMtu represents the VPP binary API message 'sw_interface_set_mtu'.
375 //
376 //            "sw_interface_set_mtu",
377 //            [
378 //                "u16",
379 //                "_vl_msg_id"
380 //            ],
381 //            [
382 //                "u32",
383 //                "client_index"
384 //            ],
385 //            [
386 //                "u32",
387 //                "context"
388 //            ],
389 //            [
390 //                "u32",
391 //                "sw_if_index"
392 //            ],
393 //            [
394 //                "u32",
395 //                "mtu",
396 //                4
397 //            ],
398 //            {
399 //                "crc": "0xd0008db8"
400 //            }
401 //
402 type SwInterfaceSetMtu struct {
403         SwIfIndex uint32
404         Mtu       []uint32 `struc:"[4]uint32"`
405 }
406
407 func (*SwInterfaceSetMtu) GetMessageName() string {
408         return "sw_interface_set_mtu"
409 }
410 func (*SwInterfaceSetMtu) GetCrcString() string {
411         return "d0008db8"
412 }
413 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
414         return api.RequestMessage
415 }
416
417 // SwInterfaceSetMtuReply represents the VPP binary API message 'sw_interface_set_mtu_reply'.
418 //
419 //            "sw_interface_set_mtu_reply",
420 //            [
421 //                "u16",
422 //                "_vl_msg_id"
423 //            ],
424 //            [
425 //                "u32",
426 //                "context"
427 //            ],
428 //            [
429 //                "i32",
430 //                "retval"
431 //            ],
432 //            {
433 //                "crc": "0xe8d4e804"
434 //            }
435 //
436 type SwInterfaceSetMtuReply struct {
437         Retval int32
438 }
439
440 func (*SwInterfaceSetMtuReply) GetMessageName() string {
441         return "sw_interface_set_mtu_reply"
442 }
443 func (*SwInterfaceSetMtuReply) GetCrcString() string {
444         return "e8d4e804"
445 }
446 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
447         return api.ReplyMessage
448 }
449
450 // SwInterfaceEvent represents the VPP binary API message 'sw_interface_event'.
451 //
452 //            "sw_interface_event",
453 //            [
454 //                "u16",
455 //                "_vl_msg_id"
456 //            ],
457 //            [
458 //                "u32",
459 //                "client_index"
460 //            ],
461 //            [
462 //                "u32",
463 //                "pid"
464 //            ],
465 //            [
466 //                "u32",
467 //                "sw_if_index"
468 //            ],
469 //            [
470 //                "u8",
471 //                "admin_up_down"
472 //            ],
473 //            [
474 //                "u8",
475 //                "link_up_down"
476 //            ],
477 //            [
478 //                "u8",
479 //                "deleted"
480 //            ],
481 //            {
482 //                "crc": "0xbf9938e4"
483 //            }
484 //
485 type SwInterfaceEvent struct {
486         PID         uint32
487         SwIfIndex   uint32
488         AdminUpDown uint8
489         LinkUpDown  uint8
490         Deleted     uint8
491 }
492
493 func (*SwInterfaceEvent) GetMessageName() string {
494         return "sw_interface_event"
495 }
496 func (*SwInterfaceEvent) GetCrcString() string {
497         return "bf9938e4"
498 }
499 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
500         return api.EventMessage
501 }
502
503 // WantInterfaceEvents represents the VPP binary API message 'want_interface_events'.
504 //
505 //            "want_interface_events",
506 //            [
507 //                "u16",
508 //                "_vl_msg_id"
509 //            ],
510 //            [
511 //                "u32",
512 //                "client_index"
513 //            ],
514 //            [
515 //                "u32",
516 //                "context"
517 //            ],
518 //            [
519 //                "u32",
520 //                "enable_disable"
521 //            ],
522 //            [
523 //                "u32",
524 //                "pid"
525 //            ],
526 //            {
527 //                "crc": "0x476f5a08"
528 //            }
529 //
530 type WantInterfaceEvents struct {
531         EnableDisable uint32
532         PID           uint32
533 }
534
535 func (*WantInterfaceEvents) GetMessageName() string {
536         return "want_interface_events"
537 }
538 func (*WantInterfaceEvents) GetCrcString() string {
539         return "476f5a08"
540 }
541 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
542         return api.RequestMessage
543 }
544
545 // WantInterfaceEventsReply represents the VPP binary API message 'want_interface_events_reply'.
546 //
547 //            "want_interface_events_reply",
548 //            [
549 //                "u16",
550 //                "_vl_msg_id"
551 //            ],
552 //            [
553 //                "u32",
554 //                "context"
555 //            ],
556 //            [
557 //                "i32",
558 //                "retval"
559 //            ],
560 //            {
561 //                "crc": "0xe8d4e804"
562 //            }
563 //
564 type WantInterfaceEventsReply struct {
565         Retval int32
566 }
567
568 func (*WantInterfaceEventsReply) GetMessageName() string {
569         return "want_interface_events_reply"
570 }
571 func (*WantInterfaceEventsReply) GetCrcString() string {
572         return "e8d4e804"
573 }
574 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
575         return api.ReplyMessage
576 }
577
578 // SwInterfaceDetails represents the VPP binary API message 'sw_interface_details'.
579 //
580 //            "sw_interface_details",
581 //            [
582 //                "u16",
583 //                "_vl_msg_id"
584 //            ],
585 //            [
586 //                "u32",
587 //                "context"
588 //            ],
589 //            [
590 //                "u32",
591 //                "sw_if_index"
592 //            ],
593 //            [
594 //                "u32",
595 //                "sup_sw_if_index"
596 //            ],
597 //            [
598 //                "u32",
599 //                "l2_address_length"
600 //            ],
601 //            [
602 //                "u8",
603 //                "l2_address",
604 //                8
605 //            ],
606 //            [
607 //                "u8",
608 //                "interface_name",
609 //                64
610 //            ],
611 //            [
612 //                "u8",
613 //                "admin_up_down"
614 //            ],
615 //            [
616 //                "u8",
617 //                "link_up_down"
618 //            ],
619 //            [
620 //                "u8",
621 //                "link_duplex"
622 //            ],
623 //            [
624 //                "u8",
625 //                "link_speed"
626 //            ],
627 //            [
628 //                "u16",
629 //                "link_mtu"
630 //            ],
631 //            [
632 //                "u32",
633 //                "mtu",
634 //                4
635 //            ],
636 //            [
637 //                "u32",
638 //                "sub_id"
639 //            ],
640 //            [
641 //                "u8",
642 //                "sub_dot1ad"
643 //            ],
644 //            [
645 //                "u8",
646 //                "sub_dot1ah"
647 //            ],
648 //            [
649 //                "u8",
650 //                "sub_number_of_tags"
651 //            ],
652 //            [
653 //                "u16",
654 //                "sub_outer_vlan_id"
655 //            ],
656 //            [
657 //                "u16",
658 //                "sub_inner_vlan_id"
659 //            ],
660 //            [
661 //                "u8",
662 //                "sub_exact_match"
663 //            ],
664 //            [
665 //                "u8",
666 //                "sub_default"
667 //            ],
668 //            [
669 //                "u8",
670 //                "sub_outer_vlan_id_any"
671 //            ],
672 //            [
673 //                "u8",
674 //                "sub_inner_vlan_id_any"
675 //            ],
676 //            [
677 //                "u32",
678 //                "vtr_op"
679 //            ],
680 //            [
681 //                "u32",
682 //                "vtr_push_dot1q"
683 //            ],
684 //            [
685 //                "u32",
686 //                "vtr_tag1"
687 //            ],
688 //            [
689 //                "u32",
690 //                "vtr_tag2"
691 //            ],
692 //            [
693 //                "u8",
694 //                "tag",
695 //                64
696 //            ],
697 //            [
698 //                "u16",
699 //                "outer_tag"
700 //            ],
701 //            [
702 //                "u8",
703 //                "b_dmac",
704 //                6
705 //            ],
706 //            [
707 //                "u8",
708 //                "b_smac",
709 //                6
710 //            ],
711 //            [
712 //                "u16",
713 //                "b_vlanid"
714 //            ],
715 //            [
716 //                "u32",
717 //                "i_sid"
718 //            ],
719 //            {
720 //                "crc": "0x09b4b510"
721 //            }
722 //
723 type SwInterfaceDetails struct {
724         SwIfIndex         uint32
725         SupSwIfIndex      uint32
726         L2AddressLength   uint32
727         L2Address         []byte `struc:"[8]byte"`
728         InterfaceName     []byte `struc:"[64]byte"`
729         AdminUpDown       uint8
730         LinkUpDown        uint8
731         LinkDuplex        uint8
732         LinkSpeed         uint8
733         LinkMtu           uint16
734         Mtu               []uint32 `struc:"[4]uint32"`
735         SubID             uint32
736         SubDot1ad         uint8
737         SubDot1ah         uint8
738         SubNumberOfTags   uint8
739         SubOuterVlanID    uint16
740         SubInnerVlanID    uint16
741         SubExactMatch     uint8
742         SubDefault        uint8
743         SubOuterVlanIDAny uint8
744         SubInnerVlanIDAny uint8
745         VtrOp             uint32
746         VtrPushDot1q      uint32
747         VtrTag1           uint32
748         VtrTag2           uint32
749         Tag               []byte `struc:"[64]byte"`
750         OuterTag          uint16
751         BDmac             []byte `struc:"[6]byte"`
752         BSmac             []byte `struc:"[6]byte"`
753         BVlanid           uint16
754         ISid              uint32
755 }
756
757 func (*SwInterfaceDetails) GetMessageName() string {
758         return "sw_interface_details"
759 }
760 func (*SwInterfaceDetails) GetCrcString() string {
761         return "09b4b510"
762 }
763 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
764         return api.ReplyMessage
765 }
766
767 // SwInterfaceDump represents the VPP binary API message 'sw_interface_dump'.
768 //
769 //            "sw_interface_dump",
770 //            [
771 //                "u16",
772 //                "_vl_msg_id"
773 //            ],
774 //            [
775 //                "u32",
776 //                "client_index"
777 //            ],
778 //            [
779 //                "u32",
780 //                "context"
781 //            ],
782 //            [
783 //                "u8",
784 //                "name_filter_valid"
785 //            ],
786 //            [
787 //                "u8",
788 //                "name_filter",
789 //                49
790 //            ],
791 //            {
792 //                "crc": "0x63f5e3b7"
793 //            }
794 //
795 type SwInterfaceDump struct {
796         NameFilterValid uint8
797         NameFilter      []byte `struc:"[49]byte"`
798 }
799
800 func (*SwInterfaceDump) GetMessageName() string {
801         return "sw_interface_dump"
802 }
803 func (*SwInterfaceDump) GetCrcString() string {
804         return "63f5e3b7"
805 }
806 func (*SwInterfaceDump) GetMessageType() api.MessageType {
807         return api.RequestMessage
808 }
809
810 // SwInterfaceAddDelAddress represents the VPP binary API message 'sw_interface_add_del_address'.
811 //
812 //            "sw_interface_add_del_address",
813 //            [
814 //                "u16",
815 //                "_vl_msg_id"
816 //            ],
817 //            [
818 //                "u32",
819 //                "client_index"
820 //            ],
821 //            [
822 //                "u32",
823 //                "context"
824 //            ],
825 //            [
826 //                "u32",
827 //                "sw_if_index"
828 //            ],
829 //            [
830 //                "u8",
831 //                "is_add"
832 //            ],
833 //            [
834 //                "u8",
835 //                "is_ipv6"
836 //            ],
837 //            [
838 //                "u8",
839 //                "del_all"
840 //            ],
841 //            [
842 //                "u8",
843 //                "address_length"
844 //            ],
845 //            [
846 //                "u8",
847 //                "address",
848 //                16
849 //            ],
850 //            {
851 //                "crc": "0x7b583179"
852 //            }
853 //
854 type SwInterfaceAddDelAddress struct {
855         SwIfIndex     uint32
856         IsAdd         uint8
857         IsIPv6        uint8
858         DelAll        uint8
859         AddressLength uint8
860         Address       []byte `struc:"[16]byte"`
861 }
862
863 func (*SwInterfaceAddDelAddress) GetMessageName() string {
864         return "sw_interface_add_del_address"
865 }
866 func (*SwInterfaceAddDelAddress) GetCrcString() string {
867         return "7b583179"
868 }
869 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
870         return api.RequestMessage
871 }
872
873 // SwInterfaceAddDelAddressReply represents the VPP binary API message 'sw_interface_add_del_address_reply'.
874 //
875 //            "sw_interface_add_del_address_reply",
876 //            [
877 //                "u16",
878 //                "_vl_msg_id"
879 //            ],
880 //            [
881 //                "u32",
882 //                "context"
883 //            ],
884 //            [
885 //                "i32",
886 //                "retval"
887 //            ],
888 //            {
889 //                "crc": "0xe8d4e804"
890 //            }
891 //
892 type SwInterfaceAddDelAddressReply struct {
893         Retval int32
894 }
895
896 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
897         return "sw_interface_add_del_address_reply"
898 }
899 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
900         return "e8d4e804"
901 }
902 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
903         return api.ReplyMessage
904 }
905
906 // SwInterfaceSetTable represents the VPP binary API message 'sw_interface_set_table'.
907 //
908 //            "sw_interface_set_table",
909 //            [
910 //                "u16",
911 //                "_vl_msg_id"
912 //            ],
913 //            [
914 //                "u32",
915 //                "client_index"
916 //            ],
917 //            [
918 //                "u32",
919 //                "context"
920 //            ],
921 //            [
922 //                "u32",
923 //                "sw_if_index"
924 //            ],
925 //            [
926 //                "u8",
927 //                "is_ipv6"
928 //            ],
929 //            [
930 //                "u32",
931 //                "vrf_id"
932 //            ],
933 //            {
934 //                "crc": "0xacb25d89"
935 //            }
936 //
937 type SwInterfaceSetTable struct {
938         SwIfIndex uint32
939         IsIPv6    uint8
940         VrfID     uint32
941 }
942
943 func (*SwInterfaceSetTable) GetMessageName() string {
944         return "sw_interface_set_table"
945 }
946 func (*SwInterfaceSetTable) GetCrcString() string {
947         return "acb25d89"
948 }
949 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
950         return api.RequestMessage
951 }
952
953 // SwInterfaceSetTableReply represents the VPP binary API message 'sw_interface_set_table_reply'.
954 //
955 //            "sw_interface_set_table_reply",
956 //            [
957 //                "u16",
958 //                "_vl_msg_id"
959 //            ],
960 //            [
961 //                "u32",
962 //                "context"
963 //            ],
964 //            [
965 //                "i32",
966 //                "retval"
967 //            ],
968 //            {
969 //                "crc": "0xe8d4e804"
970 //            }
971 //
972 type SwInterfaceSetTableReply struct {
973         Retval int32
974 }
975
976 func (*SwInterfaceSetTableReply) GetMessageName() string {
977         return "sw_interface_set_table_reply"
978 }
979 func (*SwInterfaceSetTableReply) GetCrcString() string {
980         return "e8d4e804"
981 }
982 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
983         return api.ReplyMessage
984 }
985
986 // SwInterfaceGetTable represents the VPP binary API message 'sw_interface_get_table'.
987 //
988 //            "sw_interface_get_table",
989 //            [
990 //                "u16",
991 //                "_vl_msg_id"
992 //            ],
993 //            [
994 //                "u32",
995 //                "client_index"
996 //            ],
997 //            [
998 //                "u32",
999 //                "context"
1000 //            ],
1001 //            [
1002 //                "u32",
1003 //                "sw_if_index"
1004 //            ],
1005 //            [
1006 //                "u8",
1007 //                "is_ipv6"
1008 //            ],
1009 //            {
1010 //                "crc": "0x6b7bcd0a"
1011 //            }
1012 //
1013 type SwInterfaceGetTable struct {
1014         SwIfIndex uint32
1015         IsIPv6    uint8
1016 }
1017
1018 func (*SwInterfaceGetTable) GetMessageName() string {
1019         return "sw_interface_get_table"
1020 }
1021 func (*SwInterfaceGetTable) GetCrcString() string {
1022         return "6b7bcd0a"
1023 }
1024 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
1025         return api.RequestMessage
1026 }
1027
1028 // SwInterfaceGetTableReply represents the VPP binary API message 'sw_interface_get_table_reply'.
1029 //
1030 //            "sw_interface_get_table_reply",
1031 //            [
1032 //                "u16",
1033 //                "_vl_msg_id"
1034 //            ],
1035 //            [
1036 //                "u32",
1037 //                "context"
1038 //            ],
1039 //            [
1040 //                "i32",
1041 //                "retval"
1042 //            ],
1043 //            [
1044 //                "u32",
1045 //                "vrf_id"
1046 //            ],
1047 //            {
1048 //                "crc": "0xa6eb0109"
1049 //            }
1050 //
1051 type SwInterfaceGetTableReply struct {
1052         Retval int32
1053         VrfID  uint32
1054 }
1055
1056 func (*SwInterfaceGetTableReply) GetMessageName() string {
1057         return "sw_interface_get_table_reply"
1058 }
1059 func (*SwInterfaceGetTableReply) GetCrcString() string {
1060         return "a6eb0109"
1061 }
1062 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
1063         return api.ReplyMessage
1064 }
1065
1066 // SwInterfaceSetUnnumbered represents the VPP binary API message 'sw_interface_set_unnumbered'.
1067 //
1068 //            "sw_interface_set_unnumbered",
1069 //            [
1070 //                "u16",
1071 //                "_vl_msg_id"
1072 //            ],
1073 //            [
1074 //                "u32",
1075 //                "client_index"
1076 //            ],
1077 //            [
1078 //                "u32",
1079 //                "context"
1080 //            ],
1081 //            [
1082 //                "u32",
1083 //                "sw_if_index"
1084 //            ],
1085 //            [
1086 //                "u32",
1087 //                "unnumbered_sw_if_index"
1088 //            ],
1089 //            [
1090 //                "u8",
1091 //                "is_add"
1092 //            ],
1093 //            {
1094 //                "crc": "0xa2c1bbda"
1095 //            }
1096 //
1097 type SwInterfaceSetUnnumbered struct {
1098         SwIfIndex           uint32
1099         UnnumberedSwIfIndex uint32
1100         IsAdd               uint8
1101 }
1102
1103 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
1104         return "sw_interface_set_unnumbered"
1105 }
1106 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
1107         return "a2c1bbda"
1108 }
1109 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
1110         return api.RequestMessage
1111 }
1112
1113 // SwInterfaceSetUnnumberedReply represents the VPP binary API message 'sw_interface_set_unnumbered_reply'.
1114 //
1115 //            "sw_interface_set_unnumbered_reply",
1116 //            [
1117 //                "u16",
1118 //                "_vl_msg_id"
1119 //            ],
1120 //            [
1121 //                "u32",
1122 //                "context"
1123 //            ],
1124 //            [
1125 //                "i32",
1126 //                "retval"
1127 //            ],
1128 //            {
1129 //                "crc": "0xe8d4e804"
1130 //            }
1131 //
1132 type SwInterfaceSetUnnumberedReply struct {
1133         Retval int32
1134 }
1135
1136 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
1137         return "sw_interface_set_unnumbered_reply"
1138 }
1139 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
1140         return "e8d4e804"
1141 }
1142 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
1143         return api.ReplyMessage
1144 }
1145
1146 // SwInterfaceClearStats represents the VPP binary API message 'sw_interface_clear_stats'.
1147 //
1148 //            "sw_interface_clear_stats",
1149 //            [
1150 //                "u16",
1151 //                "_vl_msg_id"
1152 //            ],
1153 //            [
1154 //                "u32",
1155 //                "client_index"
1156 //            ],
1157 //            [
1158 //                "u32",
1159 //                "context"
1160 //            ],
1161 //            [
1162 //                "u32",
1163 //                "sw_if_index"
1164 //            ],
1165 //            {
1166 //                "crc": "0x529cb13f"
1167 //            }
1168 //
1169 type SwInterfaceClearStats struct {
1170         SwIfIndex uint32
1171 }
1172
1173 func (*SwInterfaceClearStats) GetMessageName() string {
1174         return "sw_interface_clear_stats"
1175 }
1176 func (*SwInterfaceClearStats) GetCrcString() string {
1177         return "529cb13f"
1178 }
1179 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
1180         return api.RequestMessage
1181 }
1182
1183 // SwInterfaceClearStatsReply represents the VPP binary API message 'sw_interface_clear_stats_reply'.
1184 //
1185 //            "sw_interface_clear_stats_reply",
1186 //            [
1187 //                "u16",
1188 //                "_vl_msg_id"
1189 //            ],
1190 //            [
1191 //                "u32",
1192 //                "context"
1193 //            ],
1194 //            [
1195 //                "i32",
1196 //                "retval"
1197 //            ],
1198 //            {
1199 //                "crc": "0xe8d4e804"
1200 //            }
1201 //
1202 type SwInterfaceClearStatsReply struct {
1203         Retval int32
1204 }
1205
1206 func (*SwInterfaceClearStatsReply) GetMessageName() string {
1207         return "sw_interface_clear_stats_reply"
1208 }
1209 func (*SwInterfaceClearStatsReply) GetCrcString() string {
1210         return "e8d4e804"
1211 }
1212 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
1213         return api.ReplyMessage
1214 }
1215
1216 // SwInterfaceTagAddDel represents the VPP binary API message 'sw_interface_tag_add_del'.
1217 //
1218 //            "sw_interface_tag_add_del",
1219 //            [
1220 //                "u16",
1221 //                "_vl_msg_id"
1222 //            ],
1223 //            [
1224 //                "u32",
1225 //                "client_index"
1226 //            ],
1227 //            [
1228 //                "u32",
1229 //                "context"
1230 //            ],
1231 //            [
1232 //                "u8",
1233 //                "is_add"
1234 //            ],
1235 //            [
1236 //                "u32",
1237 //                "sw_if_index"
1238 //            ],
1239 //            [
1240 //                "u8",
1241 //                "tag",
1242 //                64
1243 //            ],
1244 //            {
1245 //                "crc": "0x14cc636c"
1246 //            }
1247 //
1248 type SwInterfaceTagAddDel struct {
1249         IsAdd     uint8
1250         SwIfIndex uint32
1251         Tag       []byte `struc:"[64]byte"`
1252 }
1253
1254 func (*SwInterfaceTagAddDel) GetMessageName() string {
1255         return "sw_interface_tag_add_del"
1256 }
1257 func (*SwInterfaceTagAddDel) GetCrcString() string {
1258         return "14cc636c"
1259 }
1260 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
1261         return api.RequestMessage
1262 }
1263
1264 // SwInterfaceTagAddDelReply represents the VPP binary API message 'sw_interface_tag_add_del_reply'.
1265 //
1266 //            "sw_interface_tag_add_del_reply",
1267 //            [
1268 //                "u16",
1269 //                "_vl_msg_id"
1270 //            ],
1271 //            [
1272 //                "u32",
1273 //                "context"
1274 //            ],
1275 //            [
1276 //                "i32",
1277 //                "retval"
1278 //            ],
1279 //            {
1280 //                "crc": "0xe8d4e804"
1281 //            }
1282 //
1283 type SwInterfaceTagAddDelReply struct {
1284         Retval int32
1285 }
1286
1287 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
1288         return "sw_interface_tag_add_del_reply"
1289 }
1290 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
1291         return "e8d4e804"
1292 }
1293 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
1294         return api.ReplyMessage
1295 }
1296
1297 // SwInterfaceSetMacAddress represents the VPP binary API message 'sw_interface_set_mac_address'.
1298 //
1299 //            "sw_interface_set_mac_address",
1300 //            [
1301 //                "u16",
1302 //                "_vl_msg_id"
1303 //            ],
1304 //            [
1305 //                "u32",
1306 //                "client_index"
1307 //            ],
1308 //            [
1309 //                "u32",
1310 //                "context"
1311 //            ],
1312 //            [
1313 //                "u32",
1314 //                "sw_if_index"
1315 //            ],
1316 //            [
1317 //                "u8",
1318 //                "mac_address",
1319 //                6
1320 //            ],
1321 //            {
1322 //                "crc": "0xeed5dfca"
1323 //            }
1324 //
1325 type SwInterfaceSetMacAddress struct {
1326         SwIfIndex  uint32
1327         MacAddress []byte `struc:"[6]byte"`
1328 }
1329
1330 func (*SwInterfaceSetMacAddress) GetMessageName() string {
1331         return "sw_interface_set_mac_address"
1332 }
1333 func (*SwInterfaceSetMacAddress) GetCrcString() string {
1334         return "eed5dfca"
1335 }
1336 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
1337         return api.RequestMessage
1338 }
1339
1340 // SwInterfaceSetMacAddressReply represents the VPP binary API message 'sw_interface_set_mac_address_reply'.
1341 //
1342 //            "sw_interface_set_mac_address_reply",
1343 //            [
1344 //                "u16",
1345 //                "_vl_msg_id"
1346 //            ],
1347 //            [
1348 //                "u32",
1349 //                "context"
1350 //            ],
1351 //            [
1352 //                "i32",
1353 //                "retval"
1354 //            ],
1355 //            {
1356 //                "crc": "0xe8d4e804"
1357 //            }
1358 //
1359 type SwInterfaceSetMacAddressReply struct {
1360         Retval int32
1361 }
1362
1363 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
1364         return "sw_interface_set_mac_address_reply"
1365 }
1366 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
1367         return "e8d4e804"
1368 }
1369 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
1370         return api.ReplyMessage
1371 }
1372
1373 // SwInterfaceGetMacAddress represents the VPP binary API message 'sw_interface_get_mac_address'.
1374 //
1375 //            "sw_interface_get_mac_address",
1376 //            [
1377 //                "u16",
1378 //                "_vl_msg_id"
1379 //            ],
1380 //            [
1381 //                "u32",
1382 //                "client_index"
1383 //            ],
1384 //            [
1385 //                "u32",
1386 //                "context"
1387 //            ],
1388 //            [
1389 //                "u32",
1390 //                "sw_if_index"
1391 //            ],
1392 //            {
1393 //                "crc": "0x529cb13f"
1394 //            }
1395 //
1396 type SwInterfaceGetMacAddress struct {
1397         SwIfIndex uint32
1398 }
1399
1400 func (*SwInterfaceGetMacAddress) GetMessageName() string {
1401         return "sw_interface_get_mac_address"
1402 }
1403 func (*SwInterfaceGetMacAddress) GetCrcString() string {
1404         return "529cb13f"
1405 }
1406 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
1407         return api.RequestMessage
1408 }
1409
1410 // SwInterfaceGetMacAddressReply represents the VPP binary API message 'sw_interface_get_mac_address_reply'.
1411 //
1412 //            "sw_interface_get_mac_address_reply",
1413 //            [
1414 //                "u16",
1415 //                "_vl_msg_id"
1416 //            ],
1417 //            [
1418 //                "u32",
1419 //                "context"
1420 //            ],
1421 //            [
1422 //                "i32",
1423 //                "retval"
1424 //            ],
1425 //            [
1426 //                "u8",
1427 //                "mac_address",
1428 //                6
1429 //            ],
1430 //            {
1431 //                "crc": "0x8ea538d3"
1432 //            }
1433 //
1434 type SwInterfaceGetMacAddressReply struct {
1435         Retval     int32
1436         MacAddress []byte `struc:"[6]byte"`
1437 }
1438
1439 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
1440         return "sw_interface_get_mac_address_reply"
1441 }
1442 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
1443         return "8ea538d3"
1444 }
1445 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
1446         return api.ReplyMessage
1447 }
1448
1449 // SwInterfaceSetRxMode represents the VPP binary API message 'sw_interface_set_rx_mode'.
1450 //
1451 //            "sw_interface_set_rx_mode",
1452 //            [
1453 //                "u16",
1454 //                "_vl_msg_id"
1455 //            ],
1456 //            [
1457 //                "u32",
1458 //                "client_index"
1459 //            ],
1460 //            [
1461 //                "u32",
1462 //                "context"
1463 //            ],
1464 //            [
1465 //                "u32",
1466 //                "sw_if_index"
1467 //            ],
1468 //            [
1469 //                "u8",
1470 //                "queue_id_valid"
1471 //            ],
1472 //            [
1473 //                "u32",
1474 //                "queue_id"
1475 //            ],
1476 //            [
1477 //                "u8",
1478 //                "mode"
1479 //            ],
1480 //            {
1481 //                "crc": "0x2a1cc58c"
1482 //            }
1483 //
1484 type SwInterfaceSetRxMode struct {
1485         SwIfIndex    uint32
1486         QueueIDValid uint8
1487         QueueID      uint32
1488         Mode         uint8
1489 }
1490
1491 func (*SwInterfaceSetRxMode) GetMessageName() string {
1492         return "sw_interface_set_rx_mode"
1493 }
1494 func (*SwInterfaceSetRxMode) GetCrcString() string {
1495         return "2a1cc58c"
1496 }
1497 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
1498         return api.RequestMessage
1499 }
1500
1501 // SwInterfaceSetRxModeReply represents the VPP binary API message 'sw_interface_set_rx_mode_reply'.
1502 //
1503 //            "sw_interface_set_rx_mode_reply",
1504 //            [
1505 //                "u16",
1506 //                "_vl_msg_id"
1507 //            ],
1508 //            [
1509 //                "u32",
1510 //                "context"
1511 //            ],
1512 //            [
1513 //                "i32",
1514 //                "retval"
1515 //            ],
1516 //            {
1517 //                "crc": "0xe8d4e804"
1518 //            }
1519 //
1520 type SwInterfaceSetRxModeReply struct {
1521         Retval int32
1522 }
1523
1524 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
1525         return "sw_interface_set_rx_mode_reply"
1526 }
1527 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
1528         return "e8d4e804"
1529 }
1530 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
1531         return api.ReplyMessage
1532 }
1533
1534 // InterfaceNameRenumber represents the VPP binary API message 'interface_name_renumber'.
1535 //
1536 //            "interface_name_renumber",
1537 //            [
1538 //                "u16",
1539 //                "_vl_msg_id"
1540 //            ],
1541 //            [
1542 //                "u32",
1543 //                "client_index"
1544 //            ],
1545 //            [
1546 //                "u32",
1547 //                "context"
1548 //            ],
1549 //            [
1550 //                "u32",
1551 //                "sw_if_index"
1552 //            ],
1553 //            [
1554 //                "u32",
1555 //                "new_show_dev_instance"
1556 //            ],
1557 //            {
1558 //                "crc": "0x39194269"
1559 //            }
1560 //
1561 type InterfaceNameRenumber struct {
1562         SwIfIndex          uint32
1563         NewShowDevInstance uint32
1564 }
1565
1566 func (*InterfaceNameRenumber) GetMessageName() string {
1567         return "interface_name_renumber"
1568 }
1569 func (*InterfaceNameRenumber) GetCrcString() string {
1570         return "39194269"
1571 }
1572 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
1573         return api.RequestMessage
1574 }
1575
1576 // InterfaceNameRenumberReply represents the VPP binary API message 'interface_name_renumber_reply'.
1577 //
1578 //            "interface_name_renumber_reply",
1579 //            [
1580 //                "u16",
1581 //                "_vl_msg_id"
1582 //            ],
1583 //            [
1584 //                "u32",
1585 //                "context"
1586 //            ],
1587 //            [
1588 //                "i32",
1589 //                "retval"
1590 //            ],
1591 //            {
1592 //                "crc": "0xe8d4e804"
1593 //            }
1594 //
1595 type InterfaceNameRenumberReply struct {
1596         Retval int32
1597 }
1598
1599 func (*InterfaceNameRenumberReply) GetMessageName() string {
1600         return "interface_name_renumber_reply"
1601 }
1602 func (*InterfaceNameRenumberReply) GetCrcString() string {
1603         return "e8d4e804"
1604 }
1605 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
1606         return api.ReplyMessage
1607 }
1608
1609 // CreateSubif represents the VPP binary API message 'create_subif'.
1610 //
1611 //            "create_subif",
1612 //            [
1613 //                "u16",
1614 //                "_vl_msg_id"
1615 //            ],
1616 //            [
1617 //                "u32",
1618 //                "client_index"
1619 //            ],
1620 //            [
1621 //                "u32",
1622 //                "context"
1623 //            ],
1624 //            [
1625 //                "u32",
1626 //                "sw_if_index"
1627 //            ],
1628 //            [
1629 //                "u32",
1630 //                "sub_id"
1631 //            ],
1632 //            [
1633 //                "u8",
1634 //                "no_tags"
1635 //            ],
1636 //            [
1637 //                "u8",
1638 //                "one_tag"
1639 //            ],
1640 //            [
1641 //                "u8",
1642 //                "two_tags"
1643 //            ],
1644 //            [
1645 //                "u8",
1646 //                "dot1ad"
1647 //            ],
1648 //            [
1649 //                "u8",
1650 //                "exact_match"
1651 //            ],
1652 //            [
1653 //                "u8",
1654 //                "default_sub"
1655 //            ],
1656 //            [
1657 //                "u8",
1658 //                "outer_vlan_id_any"
1659 //            ],
1660 //            [
1661 //                "u8",
1662 //                "inner_vlan_id_any"
1663 //            ],
1664 //            [
1665 //                "u16",
1666 //                "outer_vlan_id"
1667 //            ],
1668 //            [
1669 //                "u16",
1670 //                "inner_vlan_id"
1671 //            ],
1672 //            {
1673 //                "crc": "0x86cfe408"
1674 //            }
1675 //
1676 type CreateSubif struct {
1677         SwIfIndex      uint32
1678         SubID          uint32
1679         NoTags         uint8
1680         OneTag         uint8
1681         TwoTags        uint8
1682         Dot1ad         uint8
1683         ExactMatch     uint8
1684         DefaultSub     uint8
1685         OuterVlanIDAny uint8
1686         InnerVlanIDAny uint8
1687         OuterVlanID    uint16
1688         InnerVlanID    uint16
1689 }
1690
1691 func (*CreateSubif) GetMessageName() string {
1692         return "create_subif"
1693 }
1694 func (*CreateSubif) GetCrcString() string {
1695         return "86cfe408"
1696 }
1697 func (*CreateSubif) GetMessageType() api.MessageType {
1698         return api.RequestMessage
1699 }
1700
1701 // CreateSubifReply represents the VPP binary API message 'create_subif_reply'.
1702 //
1703 //            "create_subif_reply",
1704 //            [
1705 //                "u16",
1706 //                "_vl_msg_id"
1707 //            ],
1708 //            [
1709 //                "u32",
1710 //                "context"
1711 //            ],
1712 //            [
1713 //                "i32",
1714 //                "retval"
1715 //            ],
1716 //            [
1717 //                "u32",
1718 //                "sw_if_index"
1719 //            ],
1720 //            {
1721 //                "crc": "0xfda5941f"
1722 //            }
1723 //
1724 type CreateSubifReply struct {
1725         Retval    int32
1726         SwIfIndex uint32
1727 }
1728
1729 func (*CreateSubifReply) GetMessageName() string {
1730         return "create_subif_reply"
1731 }
1732 func (*CreateSubifReply) GetCrcString() string {
1733         return "fda5941f"
1734 }
1735 func (*CreateSubifReply) GetMessageType() api.MessageType {
1736         return api.ReplyMessage
1737 }
1738
1739 // CreateVlanSubif represents the VPP binary API message 'create_vlan_subif'.
1740 //
1741 //            "create_vlan_subif",
1742 //            [
1743 //                "u16",
1744 //                "_vl_msg_id"
1745 //            ],
1746 //            [
1747 //                "u32",
1748 //                "client_index"
1749 //            ],
1750 //            [
1751 //                "u32",
1752 //                "context"
1753 //            ],
1754 //            [
1755 //                "u32",
1756 //                "sw_if_index"
1757 //            ],
1758 //            [
1759 //                "u32",
1760 //                "vlan_id"
1761 //            ],
1762 //            {
1763 //                "crc": "0x70cadeda"
1764 //            }
1765 //
1766 type CreateVlanSubif struct {
1767         SwIfIndex uint32
1768         VlanID    uint32
1769 }
1770
1771 func (*CreateVlanSubif) GetMessageName() string {
1772         return "create_vlan_subif"
1773 }
1774 func (*CreateVlanSubif) GetCrcString() string {
1775         return "70cadeda"
1776 }
1777 func (*CreateVlanSubif) GetMessageType() api.MessageType {
1778         return api.RequestMessage
1779 }
1780
1781 // CreateVlanSubifReply represents the VPP binary API message 'create_vlan_subif_reply'.
1782 //
1783 //            "create_vlan_subif_reply",
1784 //            [
1785 //                "u16",
1786 //                "_vl_msg_id"
1787 //            ],
1788 //            [
1789 //                "u32",
1790 //                "context"
1791 //            ],
1792 //            [
1793 //                "i32",
1794 //                "retval"
1795 //            ],
1796 //            [
1797 //                "u32",
1798 //                "sw_if_index"
1799 //            ],
1800 //            {
1801 //                "crc": "0xfda5941f"
1802 //            }
1803 //
1804 type CreateVlanSubifReply struct {
1805         Retval    int32
1806         SwIfIndex uint32
1807 }
1808
1809 func (*CreateVlanSubifReply) GetMessageName() string {
1810         return "create_vlan_subif_reply"
1811 }
1812 func (*CreateVlanSubifReply) GetCrcString() string {
1813         return "fda5941f"
1814 }
1815 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
1816         return api.ReplyMessage
1817 }
1818
1819 // DeleteSubif represents the VPP binary API message 'delete_subif'.
1820 //
1821 //            "delete_subif",
1822 //            [
1823 //                "u16",
1824 //                "_vl_msg_id"
1825 //            ],
1826 //            [
1827 //                "u32",
1828 //                "client_index"
1829 //            ],
1830 //            [
1831 //                "u32",
1832 //                "context"
1833 //            ],
1834 //            [
1835 //                "u32",
1836 //                "sw_if_index"
1837 //            ],
1838 //            {
1839 //                "crc": "0x529cb13f"
1840 //            }
1841 //
1842 type DeleteSubif struct {
1843         SwIfIndex uint32
1844 }
1845
1846 func (*DeleteSubif) GetMessageName() string {
1847         return "delete_subif"
1848 }
1849 func (*DeleteSubif) GetCrcString() string {
1850         return "529cb13f"
1851 }
1852 func (*DeleteSubif) GetMessageType() api.MessageType {
1853         return api.RequestMessage
1854 }
1855
1856 // DeleteSubifReply represents the VPP binary API message 'delete_subif_reply'.
1857 //
1858 //            "delete_subif_reply",
1859 //            [
1860 //                "u16",
1861 //                "_vl_msg_id"
1862 //            ],
1863 //            [
1864 //                "u32",
1865 //                "context"
1866 //            ],
1867 //            [
1868 //                "i32",
1869 //                "retval"
1870 //            ],
1871 //            {
1872 //                "crc": "0xe8d4e804"
1873 //            }
1874 //
1875 type DeleteSubifReply struct {
1876         Retval int32
1877 }
1878
1879 func (*DeleteSubifReply) GetMessageName() string {
1880         return "delete_subif_reply"
1881 }
1882 func (*DeleteSubifReply) GetCrcString() string {
1883         return "e8d4e804"
1884 }
1885 func (*DeleteSubifReply) GetMessageType() api.MessageType {
1886         return api.ReplyMessage
1887 }
1888
1889 // CreateLoopback represents the VPP binary API message 'create_loopback'.
1890 //
1891 //            "create_loopback",
1892 //            [
1893 //                "u16",
1894 //                "_vl_msg_id"
1895 //            ],
1896 //            [
1897 //                "u32",
1898 //                "client_index"
1899 //            ],
1900 //            [
1901 //                "u32",
1902 //                "context"
1903 //            ],
1904 //            [
1905 //                "u8",
1906 //                "mac_address",
1907 //                6
1908 //            ],
1909 //            {
1910 //                "crc": "0x3b54129c"
1911 //            }
1912 //
1913 type CreateLoopback struct {
1914         MacAddress []byte `struc:"[6]byte"`
1915 }
1916
1917 func (*CreateLoopback) GetMessageName() string {
1918         return "create_loopback"
1919 }
1920 func (*CreateLoopback) GetCrcString() string {
1921         return "3b54129c"
1922 }
1923 func (*CreateLoopback) GetMessageType() api.MessageType {
1924         return api.RequestMessage
1925 }
1926
1927 // CreateLoopbackReply represents the VPP binary API message 'create_loopback_reply'.
1928 //
1929 //            "create_loopback_reply",
1930 //            [
1931 //                "u16",
1932 //                "_vl_msg_id"
1933 //            ],
1934 //            [
1935 //                "u32",
1936 //                "context"
1937 //            ],
1938 //            [
1939 //                "i32",
1940 //                "retval"
1941 //            ],
1942 //            [
1943 //                "u32",
1944 //                "sw_if_index"
1945 //            ],
1946 //            {
1947 //                "crc": "0xfda5941f"
1948 //            }
1949 //
1950 type CreateLoopbackReply struct {
1951         Retval    int32
1952         SwIfIndex uint32
1953 }
1954
1955 func (*CreateLoopbackReply) GetMessageName() string {
1956         return "create_loopback_reply"
1957 }
1958 func (*CreateLoopbackReply) GetCrcString() string {
1959         return "fda5941f"
1960 }
1961 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
1962         return api.ReplyMessage
1963 }
1964
1965 // CreateLoopbackInstance represents the VPP binary API message 'create_loopback_instance'.
1966 //
1967 //            "create_loopback_instance",
1968 //            [
1969 //                "u16",
1970 //                "_vl_msg_id"
1971 //            ],
1972 //            [
1973 //                "u32",
1974 //                "client_index"
1975 //            ],
1976 //            [
1977 //                "u32",
1978 //                "context"
1979 //            ],
1980 //            [
1981 //                "u8",
1982 //                "mac_address",
1983 //                6
1984 //            ],
1985 //            [
1986 //                "u8",
1987 //                "is_specified"
1988 //            ],
1989 //            [
1990 //                "u32",
1991 //                "user_instance"
1992 //            ],
1993 //            {
1994 //                "crc": "0x7bbd53b6"
1995 //            }
1996 //
1997 type CreateLoopbackInstance struct {
1998         MacAddress   []byte `struc:"[6]byte"`
1999         IsSpecified  uint8
2000         UserInstance uint32
2001 }
2002
2003 func (*CreateLoopbackInstance) GetMessageName() string {
2004         return "create_loopback_instance"
2005 }
2006 func (*CreateLoopbackInstance) GetCrcString() string {
2007         return "7bbd53b6"
2008 }
2009 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
2010         return api.RequestMessage
2011 }
2012
2013 // CreateLoopbackInstanceReply represents the VPP binary API message 'create_loopback_instance_reply'.
2014 //
2015 //            "create_loopback_instance_reply",
2016 //            [
2017 //                "u16",
2018 //                "_vl_msg_id"
2019 //            ],
2020 //            [
2021 //                "u32",
2022 //                "context"
2023 //            ],
2024 //            [
2025 //                "i32",
2026 //                "retval"
2027 //            ],
2028 //            [
2029 //                "u32",
2030 //                "sw_if_index"
2031 //            ],
2032 //            {
2033 //                "crc": "0xfda5941f"
2034 //            }
2035 //
2036 type CreateLoopbackInstanceReply struct {
2037         Retval    int32
2038         SwIfIndex uint32
2039 }
2040
2041 func (*CreateLoopbackInstanceReply) GetMessageName() string {
2042         return "create_loopback_instance_reply"
2043 }
2044 func (*CreateLoopbackInstanceReply) GetCrcString() string {
2045         return "fda5941f"
2046 }
2047 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
2048         return api.ReplyMessage
2049 }
2050
2051 // DeleteLoopback represents the VPP binary API message 'delete_loopback'.
2052 //
2053 //            "delete_loopback",
2054 //            [
2055 //                "u16",
2056 //                "_vl_msg_id"
2057 //            ],
2058 //            [
2059 //                "u32",
2060 //                "client_index"
2061 //            ],
2062 //            [
2063 //                "u32",
2064 //                "context"
2065 //            ],
2066 //            [
2067 //                "u32",
2068 //                "sw_if_index"
2069 //            ],
2070 //            {
2071 //                "crc": "0x529cb13f"
2072 //            }
2073 //
2074 type DeleteLoopback struct {
2075         SwIfIndex uint32
2076 }
2077
2078 func (*DeleteLoopback) GetMessageName() string {
2079         return "delete_loopback"
2080 }
2081 func (*DeleteLoopback) GetCrcString() string {
2082         return "529cb13f"
2083 }
2084 func (*DeleteLoopback) GetMessageType() api.MessageType {
2085         return api.RequestMessage
2086 }
2087
2088 // DeleteLoopbackReply represents the VPP binary API message 'delete_loopback_reply'.
2089 //
2090 //            "delete_loopback_reply",
2091 //            [
2092 //                "u16",
2093 //                "_vl_msg_id"
2094 //            ],
2095 //            [
2096 //                "u32",
2097 //                "context"
2098 //            ],
2099 //            [
2100 //                "i32",
2101 //                "retval"
2102 //            ],
2103 //            {
2104 //                "crc": "0xe8d4e804"
2105 //            }
2106 //
2107 type DeleteLoopbackReply struct {
2108         Retval int32
2109 }
2110
2111 func (*DeleteLoopbackReply) GetMessageName() string {
2112         return "delete_loopback_reply"
2113 }
2114 func (*DeleteLoopbackReply) GetCrcString() string {
2115         return "e8d4e804"
2116 }
2117 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
2118         return api.ReplyMessage
2119 }
2120
2121 // CollectDetailedInterfaceStats represents the VPP binary API message 'collect_detailed_interface_stats'.
2122 //
2123 //            "collect_detailed_interface_stats",
2124 //            [
2125 //                "u16",
2126 //                "_vl_msg_id"
2127 //            ],
2128 //            [
2129 //                "u32",
2130 //                "client_index"
2131 //            ],
2132 //            [
2133 //                "u32",
2134 //                "context"
2135 //            ],
2136 //            [
2137 //                "u32",
2138 //                "sw_if_index"
2139 //            ],
2140 //            [
2141 //                "u8",
2142 //                "enable_disable"
2143 //            ],
2144 //            {
2145 //                "crc": "0x69d24598"
2146 //            }
2147 //
2148 type CollectDetailedInterfaceStats struct {
2149         SwIfIndex     uint32
2150         EnableDisable uint8
2151 }
2152
2153 func (*CollectDetailedInterfaceStats) GetMessageName() string {
2154         return "collect_detailed_interface_stats"
2155 }
2156 func (*CollectDetailedInterfaceStats) GetCrcString() string {
2157         return "69d24598"
2158 }
2159 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
2160         return api.RequestMessage
2161 }
2162
2163 // CollectDetailedInterfaceStatsReply represents the VPP binary API message 'collect_detailed_interface_stats_reply'.
2164 //
2165 //            "collect_detailed_interface_stats_reply",
2166 //            [
2167 //                "u16",
2168 //                "_vl_msg_id"
2169 //            ],
2170 //            [
2171 //                "u32",
2172 //                "context"
2173 //            ],
2174 //            [
2175 //                "i32",
2176 //                "retval"
2177 //            ],
2178 //            {
2179 //                "crc": "0xe8d4e804"
2180 //            }
2181 //
2182 type CollectDetailedInterfaceStatsReply struct {
2183         Retval int32
2184 }
2185
2186 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
2187         return "collect_detailed_interface_stats_reply"
2188 }
2189 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
2190         return "e8d4e804"
2191 }
2192 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
2193         return api.ReplyMessage
2194 }
2195
2196 /* Services */
2197
2198 type Services interface {
2199         DumpSwInterface(*SwInterfaceDump) (*SwInterfaceDetails, error)
2200         CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
2201         CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
2202         CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
2203         CreateSubif(*CreateSubif) (*CreateSubifReply, error)
2204         CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
2205         DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
2206         DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
2207         HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
2208         InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
2209         SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
2210         SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
2211         SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
2212         SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
2213         SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
2214         SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
2215         SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
2216         SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
2217         SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
2218         SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
2219         SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
2220         WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
2221 }
2222
2223 func init() {
2224         api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
2225         api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
2226         api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
2227         api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
2228         api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
2229         api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
2230         api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
2231         api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
2232         api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
2233         api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
2234         api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
2235         api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
2236         api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
2237         api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
2238         api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
2239         api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
2240         api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
2241         api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
2242         api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
2243         api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
2244         api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
2245         api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
2246         api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
2247         api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
2248         api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
2249         api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
2250         api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
2251         api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
2252         api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
2253         api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
2254         api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
2255         api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
2256         api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
2257         api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
2258         api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
2259         api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
2260         api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
2261         api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
2262         api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
2263         api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
2264         api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
2265         api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
2266         api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
2267         api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
2268         api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
2269 }