Omit message factory and line numbers from generated output
[govpp.git] / examples / bin_api / acl / acl.ba.go
1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 //  source: acl.api.json
3
4 /*
5  Package acl is a generated from VPP binary API module 'acl'.
6
7  It contains following objects:
8          34 messages
9           2 types
10          17 services
11
12 */
13 package acl
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 // ACLRule represents the VPP binary API type 'acl_rule'.
27 //
28 //            "acl_rule",
29 //            [
30 //                "u8",
31 //                "is_permit"
32 //            ],
33 //            [
34 //                "u8",
35 //                "is_ipv6"
36 //            ],
37 //            [
38 //                "u8",
39 //                "src_ip_addr",
40 //                16
41 //            ],
42 //            [
43 //                "u8",
44 //                "src_ip_prefix_len"
45 //            ],
46 //            [
47 //                "u8",
48 //                "dst_ip_addr",
49 //                16
50 //            ],
51 //            [
52 //                "u8",
53 //                "dst_ip_prefix_len"
54 //            ],
55 //            [
56 //                "u8",
57 //                "proto"
58 //            ],
59 //            [
60 //                "u16",
61 //                "srcport_or_icmptype_first"
62 //            ],
63 //            [
64 //                "u16",
65 //                "srcport_or_icmptype_last"
66 //            ],
67 //            [
68 //                "u16",
69 //                "dstport_or_icmpcode_first"
70 //            ],
71 //            [
72 //                "u16",
73 //                "dstport_or_icmpcode_last"
74 //            ],
75 //            [
76 //                "u8",
77 //                "tcp_flags_mask"
78 //            ],
79 //            [
80 //                "u8",
81 //                "tcp_flags_value"
82 //            ],
83 //            {
84 //                "crc": "0x6f99bf4d"
85 //            }
86 //
87 type ACLRule struct {
88         IsPermit               uint8
89         IsIPv6                 uint8
90         SrcIPAddr              []byte `struc:"[16]byte"`
91         SrcIPPrefixLen         uint8
92         DstIPAddr              []byte `struc:"[16]byte"`
93         DstIPPrefixLen         uint8
94         Proto                  uint8
95         SrcportOrIcmptypeFirst uint16
96         SrcportOrIcmptypeLast  uint16
97         DstportOrIcmpcodeFirst uint16
98         DstportOrIcmpcodeLast  uint16
99         TCPFlagsMask           uint8
100         TCPFlagsValue          uint8
101 }
102
103 func (*ACLRule) GetTypeName() string {
104         return "acl_rule"
105 }
106 func (*ACLRule) GetCrcString() string {
107         return "6f99bf4d"
108 }
109
110 // MacipACLRule represents the VPP binary API type 'macip_acl_rule'.
111 //
112 //            "macip_acl_rule",
113 //            [
114 //                "u8",
115 //                "is_permit"
116 //            ],
117 //            [
118 //                "u8",
119 //                "is_ipv6"
120 //            ],
121 //            [
122 //                "u8",
123 //                "src_mac",
124 //                6
125 //            ],
126 //            [
127 //                "u8",
128 //                "src_mac_mask",
129 //                6
130 //            ],
131 //            [
132 //                "u8",
133 //                "src_ip_addr",
134 //                16
135 //            ],
136 //            [
137 //                "u8",
138 //                "src_ip_prefix_len"
139 //            ],
140 //            {
141 //                "crc": "0x70589f1e"
142 //            }
143 //
144 type MacipACLRule struct {
145         IsPermit       uint8
146         IsIPv6         uint8
147         SrcMac         []byte `struc:"[6]byte"`
148         SrcMacMask     []byte `struc:"[6]byte"`
149         SrcIPAddr      []byte `struc:"[16]byte"`
150         SrcIPPrefixLen uint8
151 }
152
153 func (*MacipACLRule) GetTypeName() string {
154         return "macip_acl_rule"
155 }
156 func (*MacipACLRule) GetCrcString() string {
157         return "70589f1e"
158 }
159
160 /* Messages */
161
162 // ACLPluginGetVersion represents the VPP binary API message 'acl_plugin_get_version'.
163 //
164 //            "acl_plugin_get_version",
165 //            [
166 //                "u16",
167 //                "_vl_msg_id"
168 //            ],
169 //            [
170 //                "u32",
171 //                "client_index"
172 //            ],
173 //            [
174 //                "u32",
175 //                "context"
176 //            ],
177 //            {
178 //                "crc": "0x51077d14"
179 //            }
180 //
181 type ACLPluginGetVersion struct{}
182
183 func (*ACLPluginGetVersion) GetMessageName() string {
184         return "acl_plugin_get_version"
185 }
186 func (*ACLPluginGetVersion) GetCrcString() string {
187         return "51077d14"
188 }
189 func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
190         return api.RequestMessage
191 }
192
193 // ACLPluginGetVersionReply represents the VPP binary API message 'acl_plugin_get_version_reply'.
194 //
195 //            "acl_plugin_get_version_reply",
196 //            [
197 //                "u16",
198 //                "_vl_msg_id"
199 //            ],
200 //            [
201 //                "u32",
202 //                "context"
203 //            ],
204 //            [
205 //                "u32",
206 //                "major"
207 //            ],
208 //            [
209 //                "u32",
210 //                "minor"
211 //            ],
212 //            {
213 //                "crc": "0x9b32cf86"
214 //            }
215 //
216 type ACLPluginGetVersionReply struct {
217         Major uint32
218         Minor uint32
219 }
220
221 func (*ACLPluginGetVersionReply) GetMessageName() string {
222         return "acl_plugin_get_version_reply"
223 }
224 func (*ACLPluginGetVersionReply) GetCrcString() string {
225         return "9b32cf86"
226 }
227 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
228         return api.ReplyMessage
229 }
230
231 // ACLPluginControlPing represents the VPP binary API message 'acl_plugin_control_ping'.
232 //
233 //            "acl_plugin_control_ping",
234 //            [
235 //                "u16",
236 //                "_vl_msg_id"
237 //            ],
238 //            [
239 //                "u32",
240 //                "client_index"
241 //            ],
242 //            [
243 //                "u32",
244 //                "context"
245 //            ],
246 //            {
247 //                "crc": "0x51077d14"
248 //            }
249 //
250 type ACLPluginControlPing struct{}
251
252 func (*ACLPluginControlPing) GetMessageName() string {
253         return "acl_plugin_control_ping"
254 }
255 func (*ACLPluginControlPing) GetCrcString() string {
256         return "51077d14"
257 }
258 func (*ACLPluginControlPing) GetMessageType() api.MessageType {
259         return api.RequestMessage
260 }
261
262 // ACLPluginControlPingReply represents the VPP binary API message 'acl_plugin_control_ping_reply'.
263 //
264 //            "acl_plugin_control_ping_reply",
265 //            [
266 //                "u16",
267 //                "_vl_msg_id"
268 //            ],
269 //            [
270 //                "u32",
271 //                "context"
272 //            ],
273 //            [
274 //                "i32",
275 //                "retval"
276 //            ],
277 //            [
278 //                "u32",
279 //                "client_index"
280 //            ],
281 //            [
282 //                "u32",
283 //                "vpe_pid"
284 //            ],
285 //            {
286 //                "crc": "0xf6b0b8ca"
287 //            }
288 //
289 type ACLPluginControlPingReply struct {
290         Retval      int32
291         ClientIndex uint32
292         VpePID      uint32
293 }
294
295 func (*ACLPluginControlPingReply) GetMessageName() string {
296         return "acl_plugin_control_ping_reply"
297 }
298 func (*ACLPluginControlPingReply) GetCrcString() string {
299         return "f6b0b8ca"
300 }
301 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
302         return api.ReplyMessage
303 }
304
305 // ACLAddReplace represents the VPP binary API message 'acl_add_replace'.
306 //
307 //            "acl_add_replace",
308 //            [
309 //                "u16",
310 //                "_vl_msg_id"
311 //            ],
312 //            [
313 //                "u32",
314 //                "client_index"
315 //            ],
316 //            [
317 //                "u32",
318 //                "context"
319 //            ],
320 //            [
321 //                "u32",
322 //                "acl_index"
323 //            ],
324 //            [
325 //                "u8",
326 //                "tag",
327 //                64
328 //            ],
329 //            [
330 //                "u32",
331 //                "count"
332 //            ],
333 //            [
334 //                "vl_api_acl_rule_t",
335 //                "r",
336 //                0,
337 //                "count"
338 //            ],
339 //            {
340 //                "crc": "0xe839997e"
341 //            }
342 //
343 type ACLAddReplace struct {
344         ACLIndex uint32
345         Tag      []byte `struc:"[64]byte"`
346         Count    uint32 `struc:"sizeof=R"`
347         R        []ACLRule
348 }
349
350 func (*ACLAddReplace) GetMessageName() string {
351         return "acl_add_replace"
352 }
353 func (*ACLAddReplace) GetCrcString() string {
354         return "e839997e"
355 }
356 func (*ACLAddReplace) GetMessageType() api.MessageType {
357         return api.RequestMessage
358 }
359
360 // ACLAddReplaceReply represents the VPP binary API message 'acl_add_replace_reply'.
361 //
362 //            "acl_add_replace_reply",
363 //            [
364 //                "u16",
365 //                "_vl_msg_id"
366 //            ],
367 //            [
368 //                "u32",
369 //                "context"
370 //            ],
371 //            [
372 //                "u32",
373 //                "acl_index"
374 //            ],
375 //            [
376 //                "i32",
377 //                "retval"
378 //            ],
379 //            {
380 //                "crc": "0xac407b0c"
381 //            }
382 //
383 type ACLAddReplaceReply struct {
384         ACLIndex uint32
385         Retval   int32
386 }
387
388 func (*ACLAddReplaceReply) GetMessageName() string {
389         return "acl_add_replace_reply"
390 }
391 func (*ACLAddReplaceReply) GetCrcString() string {
392         return "ac407b0c"
393 }
394 func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
395         return api.ReplyMessage
396 }
397
398 // ACLDel represents the VPP binary API message 'acl_del'.
399 //
400 //            "acl_del",
401 //            [
402 //                "u16",
403 //                "_vl_msg_id"
404 //            ],
405 //            [
406 //                "u32",
407 //                "client_index"
408 //            ],
409 //            [
410 //                "u32",
411 //                "context"
412 //            ],
413 //            [
414 //                "u32",
415 //                "acl_index"
416 //            ],
417 //            {
418 //                "crc": "0xef34fea4"
419 //            }
420 //
421 type ACLDel struct {
422         ACLIndex uint32
423 }
424
425 func (*ACLDel) GetMessageName() string {
426         return "acl_del"
427 }
428 func (*ACLDel) GetCrcString() string {
429         return "ef34fea4"
430 }
431 func (*ACLDel) GetMessageType() api.MessageType {
432         return api.RequestMessage
433 }
434
435 // ACLDelReply represents the VPP binary API message 'acl_del_reply'.
436 //
437 //            "acl_del_reply",
438 //            [
439 //                "u16",
440 //                "_vl_msg_id"
441 //            ],
442 //            [
443 //                "u32",
444 //                "context"
445 //            ],
446 //            [
447 //                "i32",
448 //                "retval"
449 //            ],
450 //            {
451 //                "crc": "0xe8d4e804"
452 //            }
453 //
454 type ACLDelReply struct {
455         Retval int32
456 }
457
458 func (*ACLDelReply) GetMessageName() string {
459         return "acl_del_reply"
460 }
461 func (*ACLDelReply) GetCrcString() string {
462         return "e8d4e804"
463 }
464 func (*ACLDelReply) GetMessageType() api.MessageType {
465         return api.ReplyMessage
466 }
467
468 // ACLInterfaceAddDel represents the VPP binary API message 'acl_interface_add_del'.
469 //
470 //            "acl_interface_add_del",
471 //            [
472 //                "u16",
473 //                "_vl_msg_id"
474 //            ],
475 //            [
476 //                "u32",
477 //                "client_index"
478 //            ],
479 //            [
480 //                "u32",
481 //                "context"
482 //            ],
483 //            [
484 //                "u8",
485 //                "is_add"
486 //            ],
487 //            [
488 //                "u8",
489 //                "is_input"
490 //            ],
491 //            [
492 //                "u32",
493 //                "sw_if_index"
494 //            ],
495 //            [
496 //                "u32",
497 //                "acl_index"
498 //            ],
499 //            {
500 //                "crc": "0x0b2aedd1"
501 //            }
502 //
503 type ACLInterfaceAddDel struct {
504         IsAdd     uint8
505         IsInput   uint8
506         SwIfIndex uint32
507         ACLIndex  uint32
508 }
509
510 func (*ACLInterfaceAddDel) GetMessageName() string {
511         return "acl_interface_add_del"
512 }
513 func (*ACLInterfaceAddDel) GetCrcString() string {
514         return "0b2aedd1"
515 }
516 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
517         return api.RequestMessage
518 }
519
520 // ACLInterfaceAddDelReply represents the VPP binary API message 'acl_interface_add_del_reply'.
521 //
522 //            "acl_interface_add_del_reply",
523 //            [
524 //                "u16",
525 //                "_vl_msg_id"
526 //            ],
527 //            [
528 //                "u32",
529 //                "context"
530 //            ],
531 //            [
532 //                "i32",
533 //                "retval"
534 //            ],
535 //            {
536 //                "crc": "0xe8d4e804"
537 //            }
538 //
539 type ACLInterfaceAddDelReply struct {
540         Retval int32
541 }
542
543 func (*ACLInterfaceAddDelReply) GetMessageName() string {
544         return "acl_interface_add_del_reply"
545 }
546 func (*ACLInterfaceAddDelReply) GetCrcString() string {
547         return "e8d4e804"
548 }
549 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
550         return api.ReplyMessage
551 }
552
553 // ACLInterfaceSetACLList represents the VPP binary API message 'acl_interface_set_acl_list'.
554 //
555 //            "acl_interface_set_acl_list",
556 //            [
557 //                "u16",
558 //                "_vl_msg_id"
559 //            ],
560 //            [
561 //                "u32",
562 //                "client_index"
563 //            ],
564 //            [
565 //                "u32",
566 //                "context"
567 //            ],
568 //            [
569 //                "u32",
570 //                "sw_if_index"
571 //            ],
572 //            [
573 //                "u8",
574 //                "count"
575 //            ],
576 //            [
577 //                "u8",
578 //                "n_input"
579 //            ],
580 //            [
581 //                "u32",
582 //                "acls",
583 //                0,
584 //                "count"
585 //            ],
586 //            {
587 //                "crc": "0x8baece38"
588 //            }
589 //
590 type ACLInterfaceSetACLList struct {
591         SwIfIndex uint32
592         Count     uint8 `struc:"sizeof=Acls"`
593         NInput    uint8
594         Acls      []uint32
595 }
596
597 func (*ACLInterfaceSetACLList) GetMessageName() string {
598         return "acl_interface_set_acl_list"
599 }
600 func (*ACLInterfaceSetACLList) GetCrcString() string {
601         return "8baece38"
602 }
603 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
604         return api.RequestMessage
605 }
606
607 // ACLInterfaceSetACLListReply represents the VPP binary API message 'acl_interface_set_acl_list_reply'.
608 //
609 //            "acl_interface_set_acl_list_reply",
610 //            [
611 //                "u16",
612 //                "_vl_msg_id"
613 //            ],
614 //            [
615 //                "u32",
616 //                "context"
617 //            ],
618 //            [
619 //                "i32",
620 //                "retval"
621 //            ],
622 //            {
623 //                "crc": "0xe8d4e804"
624 //            }
625 //
626 type ACLInterfaceSetACLListReply struct {
627         Retval int32
628 }
629
630 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
631         return "acl_interface_set_acl_list_reply"
632 }
633 func (*ACLInterfaceSetACLListReply) GetCrcString() string {
634         return "e8d4e804"
635 }
636 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
637         return api.ReplyMessage
638 }
639
640 // ACLDump represents the VPP binary API message 'acl_dump'.
641 //
642 //            "acl_dump",
643 //            [
644 //                "u16",
645 //                "_vl_msg_id"
646 //            ],
647 //            [
648 //                "u32",
649 //                "client_index"
650 //            ],
651 //            [
652 //                "u32",
653 //                "context"
654 //            ],
655 //            [
656 //                "u32",
657 //                "acl_index"
658 //            ],
659 //            {
660 //                "crc": "0xef34fea4"
661 //            }
662 //
663 type ACLDump struct {
664         ACLIndex uint32
665 }
666
667 func (*ACLDump) GetMessageName() string {
668         return "acl_dump"
669 }
670 func (*ACLDump) GetCrcString() string {
671         return "ef34fea4"
672 }
673 func (*ACLDump) GetMessageType() api.MessageType {
674         return api.RequestMessage
675 }
676
677 // ACLDetails represents the VPP binary API message 'acl_details'.
678 //
679 //            "acl_details",
680 //            [
681 //                "u16",
682 //                "_vl_msg_id"
683 //            ],
684 //            [
685 //                "u32",
686 //                "context"
687 //            ],
688 //            [
689 //                "u32",
690 //                "acl_index"
691 //            ],
692 //            [
693 //                "u8",
694 //                "tag",
695 //                64
696 //            ],
697 //            [
698 //                "u32",
699 //                "count"
700 //            ],
701 //            [
702 //                "vl_api_acl_rule_t",
703 //                "r",
704 //                0,
705 //                "count"
706 //            ],
707 //            {
708 //                "crc": "0x5bd895be"
709 //            }
710 //
711 type ACLDetails struct {
712         ACLIndex uint32
713         Tag      []byte `struc:"[64]byte"`
714         Count    uint32 `struc:"sizeof=R"`
715         R        []ACLRule
716 }
717
718 func (*ACLDetails) GetMessageName() string {
719         return "acl_details"
720 }
721 func (*ACLDetails) GetCrcString() string {
722         return "5bd895be"
723 }
724 func (*ACLDetails) GetMessageType() api.MessageType {
725         return api.ReplyMessage
726 }
727
728 // ACLInterfaceListDump represents the VPP binary API message 'acl_interface_list_dump'.
729 //
730 //            "acl_interface_list_dump",
731 //            [
732 //                "u16",
733 //                "_vl_msg_id"
734 //            ],
735 //            [
736 //                "u32",
737 //                "client_index"
738 //            ],
739 //            [
740 //                "u32",
741 //                "context"
742 //            ],
743 //            [
744 //                "u32",
745 //                "sw_if_index"
746 //            ],
747 //            {
748 //                "crc": "0x529cb13f"
749 //            }
750 //
751 type ACLInterfaceListDump struct {
752         SwIfIndex uint32
753 }
754
755 func (*ACLInterfaceListDump) GetMessageName() string {
756         return "acl_interface_list_dump"
757 }
758 func (*ACLInterfaceListDump) GetCrcString() string {
759         return "529cb13f"
760 }
761 func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
762         return api.RequestMessage
763 }
764
765 // ACLInterfaceListDetails represents the VPP binary API message 'acl_interface_list_details'.
766 //
767 //            "acl_interface_list_details",
768 //            [
769 //                "u16",
770 //                "_vl_msg_id"
771 //            ],
772 //            [
773 //                "u32",
774 //                "context"
775 //            ],
776 //            [
777 //                "u32",
778 //                "sw_if_index"
779 //            ],
780 //            [
781 //                "u8",
782 //                "count"
783 //            ],
784 //            [
785 //                "u8",
786 //                "n_input"
787 //            ],
788 //            [
789 //                "u32",
790 //                "acls",
791 //                0,
792 //                "count"
793 //            ],
794 //            {
795 //                "crc": "0xd5e80809"
796 //            }
797 //
798 type ACLInterfaceListDetails struct {
799         SwIfIndex uint32
800         Count     uint8 `struc:"sizeof=Acls"`
801         NInput    uint8
802         Acls      []uint32
803 }
804
805 func (*ACLInterfaceListDetails) GetMessageName() string {
806         return "acl_interface_list_details"
807 }
808 func (*ACLInterfaceListDetails) GetCrcString() string {
809         return "d5e80809"
810 }
811 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
812         return api.ReplyMessage
813 }
814
815 // MacipACLAdd represents the VPP binary API message 'macip_acl_add'.
816 //
817 //            "macip_acl_add",
818 //            [
819 //                "u16",
820 //                "_vl_msg_id"
821 //            ],
822 //            [
823 //                "u32",
824 //                "client_index"
825 //            ],
826 //            [
827 //                "u32",
828 //                "context"
829 //            ],
830 //            [
831 //                "u8",
832 //                "tag",
833 //                64
834 //            ],
835 //            [
836 //                "u32",
837 //                "count"
838 //            ],
839 //            [
840 //                "vl_api_macip_acl_rule_t",
841 //                "r",
842 //                0,
843 //                "count"
844 //            ],
845 //            {
846 //                "crc": "0xb3d3d65a"
847 //            }
848 //
849 type MacipACLAdd struct {
850         Tag   []byte `struc:"[64]byte"`
851         Count uint32 `struc:"sizeof=R"`
852         R     []MacipACLRule
853 }
854
855 func (*MacipACLAdd) GetMessageName() string {
856         return "macip_acl_add"
857 }
858 func (*MacipACLAdd) GetCrcString() string {
859         return "b3d3d65a"
860 }
861 func (*MacipACLAdd) GetMessageType() api.MessageType {
862         return api.RequestMessage
863 }
864
865 // MacipACLAddReply represents the VPP binary API message 'macip_acl_add_reply'.
866 //
867 //            "macip_acl_add_reply",
868 //            [
869 //                "u16",
870 //                "_vl_msg_id"
871 //            ],
872 //            [
873 //                "u32",
874 //                "context"
875 //            ],
876 //            [
877 //                "u32",
878 //                "acl_index"
879 //            ],
880 //            [
881 //                "i32",
882 //                "retval"
883 //            ],
884 //            {
885 //                "crc": "0xac407b0c"
886 //            }
887 //
888 type MacipACLAddReply struct {
889         ACLIndex uint32
890         Retval   int32
891 }
892
893 func (*MacipACLAddReply) GetMessageName() string {
894         return "macip_acl_add_reply"
895 }
896 func (*MacipACLAddReply) GetCrcString() string {
897         return "ac407b0c"
898 }
899 func (*MacipACLAddReply) GetMessageType() api.MessageType {
900         return api.ReplyMessage
901 }
902
903 // MacipACLAddReplace represents the VPP binary API message 'macip_acl_add_replace'.
904 //
905 //            "macip_acl_add_replace",
906 //            [
907 //                "u16",
908 //                "_vl_msg_id"
909 //            ],
910 //            [
911 //                "u32",
912 //                "client_index"
913 //            ],
914 //            [
915 //                "u32",
916 //                "context"
917 //            ],
918 //            [
919 //                "u32",
920 //                "acl_index"
921 //            ],
922 //            [
923 //                "u8",
924 //                "tag",
925 //                64
926 //            ],
927 //            [
928 //                "u32",
929 //                "count"
930 //            ],
931 //            [
932 //                "vl_api_macip_acl_rule_t",
933 //                "r",
934 //                0,
935 //                "count"
936 //            ],
937 //            {
938 //                "crc": "0xa0e8c01b"
939 //            }
940 //
941 type MacipACLAddReplace struct {
942         ACLIndex uint32
943         Tag      []byte `struc:"[64]byte"`
944         Count    uint32 `struc:"sizeof=R"`
945         R        []MacipACLRule
946 }
947
948 func (*MacipACLAddReplace) GetMessageName() string {
949         return "macip_acl_add_replace"
950 }
951 func (*MacipACLAddReplace) GetCrcString() string {
952         return "a0e8c01b"
953 }
954 func (*MacipACLAddReplace) GetMessageType() api.MessageType {
955         return api.RequestMessage
956 }
957
958 // MacipACLAddReplaceReply represents the VPP binary API message 'macip_acl_add_replace_reply'.
959 //
960 //            "macip_acl_add_replace_reply",
961 //            [
962 //                "u16",
963 //                "_vl_msg_id"
964 //            ],
965 //            [
966 //                "u32",
967 //                "context"
968 //            ],
969 //            [
970 //                "u32",
971 //                "acl_index"
972 //            ],
973 //            [
974 //                "i32",
975 //                "retval"
976 //            ],
977 //            {
978 //                "crc": "0xac407b0c"
979 //            }
980 //
981 type MacipACLAddReplaceReply struct {
982         ACLIndex uint32
983         Retval   int32
984 }
985
986 func (*MacipACLAddReplaceReply) GetMessageName() string {
987         return "macip_acl_add_replace_reply"
988 }
989 func (*MacipACLAddReplaceReply) GetCrcString() string {
990         return "ac407b0c"
991 }
992 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType {
993         return api.ReplyMessage
994 }
995
996 // MacipACLDel represents the VPP binary API message 'macip_acl_del'.
997 //
998 //            "macip_acl_del",
999 //            [
1000 //                "u16",
1001 //                "_vl_msg_id"
1002 //            ],
1003 //            [
1004 //                "u32",
1005 //                "client_index"
1006 //            ],
1007 //            [
1008 //                "u32",
1009 //                "context"
1010 //            ],
1011 //            [
1012 //                "u32",
1013 //                "acl_index"
1014 //            ],
1015 //            {
1016 //                "crc": "0xef34fea4"
1017 //            }
1018 //
1019 type MacipACLDel struct {
1020         ACLIndex uint32
1021 }
1022
1023 func (*MacipACLDel) GetMessageName() string {
1024         return "macip_acl_del"
1025 }
1026 func (*MacipACLDel) GetCrcString() string {
1027         return "ef34fea4"
1028 }
1029 func (*MacipACLDel) GetMessageType() api.MessageType {
1030         return api.RequestMessage
1031 }
1032
1033 // MacipACLDelReply represents the VPP binary API message 'macip_acl_del_reply'.
1034 //
1035 //            "macip_acl_del_reply",
1036 //            [
1037 //                "u16",
1038 //                "_vl_msg_id"
1039 //            ],
1040 //            [
1041 //                "u32",
1042 //                "context"
1043 //            ],
1044 //            [
1045 //                "i32",
1046 //                "retval"
1047 //            ],
1048 //            {
1049 //                "crc": "0xe8d4e804"
1050 //            }
1051 //
1052 type MacipACLDelReply struct {
1053         Retval int32
1054 }
1055
1056 func (*MacipACLDelReply) GetMessageName() string {
1057         return "macip_acl_del_reply"
1058 }
1059 func (*MacipACLDelReply) GetCrcString() string {
1060         return "e8d4e804"
1061 }
1062 func (*MacipACLDelReply) GetMessageType() api.MessageType {
1063         return api.ReplyMessage
1064 }
1065
1066 // MacipACLInterfaceAddDel represents the VPP binary API message 'macip_acl_interface_add_del'.
1067 //
1068 //            "macip_acl_interface_add_del",
1069 //            [
1070 //                "u16",
1071 //                "_vl_msg_id"
1072 //            ],
1073 //            [
1074 //                "u32",
1075 //                "client_index"
1076 //            ],
1077 //            [
1078 //                "u32",
1079 //                "context"
1080 //            ],
1081 //            [
1082 //                "u8",
1083 //                "is_add"
1084 //            ],
1085 //            [
1086 //                "u32",
1087 //                "sw_if_index"
1088 //            ],
1089 //            [
1090 //                "u32",
1091 //                "acl_index"
1092 //            ],
1093 //            {
1094 //                "crc": "0x6a6be97c"
1095 //            }
1096 //
1097 type MacipACLInterfaceAddDel struct {
1098         IsAdd     uint8
1099         SwIfIndex uint32
1100         ACLIndex  uint32
1101 }
1102
1103 func (*MacipACLInterfaceAddDel) GetMessageName() string {
1104         return "macip_acl_interface_add_del"
1105 }
1106 func (*MacipACLInterfaceAddDel) GetCrcString() string {
1107         return "6a6be97c"
1108 }
1109 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
1110         return api.RequestMessage
1111 }
1112
1113 // MacipACLInterfaceAddDelReply represents the VPP binary API message 'macip_acl_interface_add_del_reply'.
1114 //
1115 //            "macip_acl_interface_add_del_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 MacipACLInterfaceAddDelReply struct {
1133         Retval int32
1134 }
1135
1136 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
1137         return "macip_acl_interface_add_del_reply"
1138 }
1139 func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
1140         return "e8d4e804"
1141 }
1142 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
1143         return api.ReplyMessage
1144 }
1145
1146 // MacipACLDump represents the VPP binary API message 'macip_acl_dump'.
1147 //
1148 //            "macip_acl_dump",
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 //                "acl_index"
1164 //            ],
1165 //            {
1166 //                "crc": "0xef34fea4"
1167 //            }
1168 //
1169 type MacipACLDump struct {
1170         ACLIndex uint32
1171 }
1172
1173 func (*MacipACLDump) GetMessageName() string {
1174         return "macip_acl_dump"
1175 }
1176 func (*MacipACLDump) GetCrcString() string {
1177         return "ef34fea4"
1178 }
1179 func (*MacipACLDump) GetMessageType() api.MessageType {
1180         return api.RequestMessage
1181 }
1182
1183 // MacipACLDetails represents the VPP binary API message 'macip_acl_details'.
1184 //
1185 //            "macip_acl_details",
1186 //            [
1187 //                "u16",
1188 //                "_vl_msg_id"
1189 //            ],
1190 //            [
1191 //                "u32",
1192 //                "context"
1193 //            ],
1194 //            [
1195 //                "u32",
1196 //                "acl_index"
1197 //            ],
1198 //            [
1199 //                "u8",
1200 //                "tag",
1201 //                64
1202 //            ],
1203 //            [
1204 //                "u32",
1205 //                "count"
1206 //            ],
1207 //            [
1208 //                "vl_api_macip_acl_rule_t",
1209 //                "r",
1210 //                0,
1211 //                "count"
1212 //            ],
1213 //            {
1214 //                "crc": "0xdd2b55ba"
1215 //            }
1216 //
1217 type MacipACLDetails struct {
1218         ACLIndex uint32
1219         Tag      []byte `struc:"[64]byte"`
1220         Count    uint32 `struc:"sizeof=R"`
1221         R        []MacipACLRule
1222 }
1223
1224 func (*MacipACLDetails) GetMessageName() string {
1225         return "macip_acl_details"
1226 }
1227 func (*MacipACLDetails) GetCrcString() string {
1228         return "dd2b55ba"
1229 }
1230 func (*MacipACLDetails) GetMessageType() api.MessageType {
1231         return api.ReplyMessage
1232 }
1233
1234 // MacipACLInterfaceGet represents the VPP binary API message 'macip_acl_interface_get'.
1235 //
1236 //            "macip_acl_interface_get",
1237 //            [
1238 //                "u16",
1239 //                "_vl_msg_id"
1240 //            ],
1241 //            [
1242 //                "u32",
1243 //                "client_index"
1244 //            ],
1245 //            [
1246 //                "u32",
1247 //                "context"
1248 //            ],
1249 //            {
1250 //                "crc": "0x51077d14"
1251 //            }
1252 //
1253 type MacipACLInterfaceGet struct{}
1254
1255 func (*MacipACLInterfaceGet) GetMessageName() string {
1256         return "macip_acl_interface_get"
1257 }
1258 func (*MacipACLInterfaceGet) GetCrcString() string {
1259         return "51077d14"
1260 }
1261 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
1262         return api.RequestMessage
1263 }
1264
1265 // MacipACLInterfaceGetReply represents the VPP binary API message 'macip_acl_interface_get_reply'.
1266 //
1267 //            "macip_acl_interface_get_reply",
1268 //            [
1269 //                "u16",
1270 //                "_vl_msg_id"
1271 //            ],
1272 //            [
1273 //                "u32",
1274 //                "context"
1275 //            ],
1276 //            [
1277 //                "u32",
1278 //                "count"
1279 //            ],
1280 //            [
1281 //                "u32",
1282 //                "acls",
1283 //                0,
1284 //                "count"
1285 //            ],
1286 //            {
1287 //                "crc": "0xaccf9b05"
1288 //            }
1289 //
1290 type MacipACLInterfaceGetReply struct {
1291         Count uint32 `struc:"sizeof=Acls"`
1292         Acls  []uint32
1293 }
1294
1295 func (*MacipACLInterfaceGetReply) GetMessageName() string {
1296         return "macip_acl_interface_get_reply"
1297 }
1298 func (*MacipACLInterfaceGetReply) GetCrcString() string {
1299         return "accf9b05"
1300 }
1301 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
1302         return api.ReplyMessage
1303 }
1304
1305 // MacipACLInterfaceListDump represents the VPP binary API message 'macip_acl_interface_list_dump'.
1306 //
1307 //            "macip_acl_interface_list_dump",
1308 //            [
1309 //                "u16",
1310 //                "_vl_msg_id"
1311 //            ],
1312 //            [
1313 //                "u32",
1314 //                "client_index"
1315 //            ],
1316 //            [
1317 //                "u32",
1318 //                "context"
1319 //            ],
1320 //            [
1321 //                "u32",
1322 //                "sw_if_index"
1323 //            ],
1324 //            {
1325 //                "crc": "0x529cb13f"
1326 //            }
1327 //
1328 type MacipACLInterfaceListDump struct {
1329         SwIfIndex uint32
1330 }
1331
1332 func (*MacipACLInterfaceListDump) GetMessageName() string {
1333         return "macip_acl_interface_list_dump"
1334 }
1335 func (*MacipACLInterfaceListDump) GetCrcString() string {
1336         return "529cb13f"
1337 }
1338 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType {
1339         return api.RequestMessage
1340 }
1341
1342 // MacipACLInterfaceListDetails represents the VPP binary API message 'macip_acl_interface_list_details'.
1343 //
1344 //            "macip_acl_interface_list_details",
1345 //            [
1346 //                "u16",
1347 //                "_vl_msg_id"
1348 //            ],
1349 //            [
1350 //                "u32",
1351 //                "context"
1352 //            ],
1353 //            [
1354 //                "u32",
1355 //                "sw_if_index"
1356 //            ],
1357 //            [
1358 //                "u8",
1359 //                "count"
1360 //            ],
1361 //            [
1362 //                "u32",
1363 //                "acls",
1364 //                0,
1365 //                "count"
1366 //            ],
1367 //            {
1368 //                "crc": "0x29783fa0"
1369 //            }
1370 //
1371 type MacipACLInterfaceListDetails struct {
1372         SwIfIndex uint32
1373         Count     uint8 `struc:"sizeof=Acls"`
1374         Acls      []uint32
1375 }
1376
1377 func (*MacipACLInterfaceListDetails) GetMessageName() string {
1378         return "macip_acl_interface_list_details"
1379 }
1380 func (*MacipACLInterfaceListDetails) GetCrcString() string {
1381         return "29783fa0"
1382 }
1383 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
1384         return api.ReplyMessage
1385 }
1386
1387 // ACLInterfaceSetEtypeWhitelist represents the VPP binary API message 'acl_interface_set_etype_whitelist'.
1388 //
1389 //            "acl_interface_set_etype_whitelist",
1390 //            [
1391 //                "u16",
1392 //                "_vl_msg_id"
1393 //            ],
1394 //            [
1395 //                "u32",
1396 //                "client_index"
1397 //            ],
1398 //            [
1399 //                "u32",
1400 //                "context"
1401 //            ],
1402 //            [
1403 //                "u32",
1404 //                "sw_if_index"
1405 //            ],
1406 //            [
1407 //                "u8",
1408 //                "count"
1409 //            ],
1410 //            [
1411 //                "u8",
1412 //                "n_input"
1413 //            ],
1414 //            [
1415 //                "u16",
1416 //                "whitelist",
1417 //                0,
1418 //                "count"
1419 //            ],
1420 //            {
1421 //                "crc": "0xf515efc5"
1422 //            }
1423 //
1424 type ACLInterfaceSetEtypeWhitelist struct {
1425         SwIfIndex uint32
1426         Count     uint8 `struc:"sizeof=Whitelist"`
1427         NInput    uint8
1428         Whitelist []uint16
1429 }
1430
1431 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
1432         return "acl_interface_set_etype_whitelist"
1433 }
1434 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string {
1435         return "f515efc5"
1436 }
1437 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType {
1438         return api.RequestMessage
1439 }
1440
1441 // ACLInterfaceSetEtypeWhitelistReply represents the VPP binary API message 'acl_interface_set_etype_whitelist_reply'.
1442 //
1443 //            "acl_interface_set_etype_whitelist_reply",
1444 //            [
1445 //                "u16",
1446 //                "_vl_msg_id"
1447 //            ],
1448 //            [
1449 //                "u32",
1450 //                "context"
1451 //            ],
1452 //            [
1453 //                "i32",
1454 //                "retval"
1455 //            ],
1456 //            {
1457 //                "crc": "0xe8d4e804"
1458 //            }
1459 //
1460 type ACLInterfaceSetEtypeWhitelistReply struct {
1461         Retval int32
1462 }
1463
1464 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
1465         return "acl_interface_set_etype_whitelist_reply"
1466 }
1467 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string {
1468         return "e8d4e804"
1469 }
1470 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType {
1471         return api.ReplyMessage
1472 }
1473
1474 // ACLInterfaceEtypeWhitelistDump represents the VPP binary API message 'acl_interface_etype_whitelist_dump'.
1475 //
1476 //            "acl_interface_etype_whitelist_dump",
1477 //            [
1478 //                "u16",
1479 //                "_vl_msg_id"
1480 //            ],
1481 //            [
1482 //                "u32",
1483 //                "client_index"
1484 //            ],
1485 //            [
1486 //                "u32",
1487 //                "context"
1488 //            ],
1489 //            [
1490 //                "u32",
1491 //                "sw_if_index"
1492 //            ],
1493 //            {
1494 //                "crc": "0x529cb13f"
1495 //            }
1496 //
1497 type ACLInterfaceEtypeWhitelistDump struct {
1498         SwIfIndex uint32
1499 }
1500
1501 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
1502         return "acl_interface_etype_whitelist_dump"
1503 }
1504 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string {
1505         return "529cb13f"
1506 }
1507 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType {
1508         return api.RequestMessage
1509 }
1510
1511 // ACLInterfaceEtypeWhitelistDetails represents the VPP binary API message 'acl_interface_etype_whitelist_details'.
1512 //
1513 //            "acl_interface_etype_whitelist_details",
1514 //            [
1515 //                "u16",
1516 //                "_vl_msg_id"
1517 //            ],
1518 //            [
1519 //                "u32",
1520 //                "context"
1521 //            ],
1522 //            [
1523 //                "u32",
1524 //                "sw_if_index"
1525 //            ],
1526 //            [
1527 //                "u8",
1528 //                "count"
1529 //            ],
1530 //            [
1531 //                "u8",
1532 //                "n_input"
1533 //            ],
1534 //            [
1535 //                "u16",
1536 //                "whitelist",
1537 //                0,
1538 //                "count"
1539 //            ],
1540 //            {
1541 //                "crc": "0x6a5d4e81"
1542 //            }
1543 //
1544 type ACLInterfaceEtypeWhitelistDetails struct {
1545         SwIfIndex uint32
1546         Count     uint8 `struc:"sizeof=Whitelist"`
1547         NInput    uint8
1548         Whitelist []uint16
1549 }
1550
1551 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
1552         return "acl_interface_etype_whitelist_details"
1553 }
1554 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string {
1555         return "6a5d4e81"
1556 }
1557 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType {
1558         return api.ReplyMessage
1559 }
1560
1561 /* Services */
1562
1563 type Services interface {
1564         DumpACL(*ACLDump) (*ACLDetails, error)
1565         DumpACLInterfaceEtypeWhitelist(*ACLInterfaceEtypeWhitelistDump) (*ACLInterfaceEtypeWhitelistDetails, error)
1566         DumpACLInterfaceList(*ACLInterfaceListDump) (*ACLInterfaceListDetails, error)
1567         DumpMacipACL(*MacipACLDump) (*MacipACLDetails, error)
1568         DumpMacipACLInterfaceList(*MacipACLInterfaceListDump) (*MacipACLInterfaceListDetails, error)
1569         ACLAddReplace(*ACLAddReplace) (*ACLAddReplaceReply, error)
1570         ACLDel(*ACLDel) (*ACLDelReply, error)
1571         ACLInterfaceAddDel(*ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
1572         ACLInterfaceSetACLList(*ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
1573         ACLInterfaceSetEtypeWhitelist(*ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
1574         ACLPluginControlPing(*ACLPluginControlPing) (*ACLPluginControlPingReply, error)
1575         ACLPluginGetVersion(*ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
1576         MacipACLAdd(*MacipACLAdd) (*MacipACLAddReply, error)
1577         MacipACLAddReplace(*MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
1578         MacipACLDel(*MacipACLDel) (*MacipACLDelReply, error)
1579         MacipACLInterfaceAddDel(*MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
1580         MacipACLInterfaceGet(*MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
1581 }
1582
1583 func init() {
1584         api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
1585         api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
1586         api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
1587         api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
1588         api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
1589         api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
1590         api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
1591         api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
1592         api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
1593         api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
1594         api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
1595         api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
1596         api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
1597         api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
1598         api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
1599         api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
1600         api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
1601         api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
1602         api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
1603         api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
1604         api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
1605         api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
1606         api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
1607         api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
1608         api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
1609         api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
1610         api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
1611         api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
1612         api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")
1613         api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
1614         api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
1615         api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
1616         api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
1617         api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
1618 }