Fix union data size for types with enums
[govpp.git] / examples / bin_api / acl.api.json
1 {
2     "messages": [
3         [
4             "acl_plugin_get_version",
5             [
6                 "u16",
7                 "_vl_msg_id"
8             ],
9             [
10                 "u32",
11                 "client_index"
12             ],
13             [
14                 "u32",
15                 "context"
16             ],
17             {
18                 "crc": "0x51077d14"
19             }
20         ],
21         [
22             "acl_plugin_get_version_reply",
23             [
24                 "u16",
25                 "_vl_msg_id"
26             ],
27             [
28                 "u32",
29                 "context"
30             ],
31             [
32                 "u32",
33                 "major"
34             ],
35             [
36                 "u32",
37                 "minor"
38             ],
39             {
40                 "crc": "0x9b32cf86"
41             }
42         ],
43         [
44             "acl_plugin_control_ping",
45             [
46                 "u16",
47                 "_vl_msg_id"
48             ],
49             [
50                 "u32",
51                 "client_index"
52             ],
53             [
54                 "u32",
55                 "context"
56             ],
57             {
58                 "crc": "0x51077d14"
59             }
60         ],
61         [
62             "acl_plugin_control_ping_reply",
63             [
64                 "u16",
65                 "_vl_msg_id"
66             ],
67             [
68                 "u32",
69                 "context"
70             ],
71             [
72                 "i32",
73                 "retval"
74             ],
75             [
76                 "u32",
77                 "client_index"
78             ],
79             [
80                 "u32",
81                 "vpe_pid"
82             ],
83             {
84                 "crc": "0xf6b0b8ca"
85             }
86         ],
87         [
88             "acl_plugin_get_conn_table_max_entries",
89             [
90                 "u16",
91                 "_vl_msg_id"
92             ],
93             [
94                 "u32",
95                 "client_index"
96             ],
97             [
98                 "u32",
99                 "context"
100             ],
101             {
102                 "crc": "0x51077d14"
103             }
104         ],
105         [
106             "acl_plugin_get_conn_table_max_entries_reply",
107             [
108                 "u16",
109                 "_vl_msg_id"
110             ],
111             [
112                 "u32",
113                 "context"
114             ],
115             [
116                 "u64",
117                 "conn_table_max_entries"
118             ],
119             {
120                 "crc": "0x7a096d3d"
121             }
122         ],
123         [
124             "acl_add_replace",
125             [
126                 "u16",
127                 "_vl_msg_id"
128             ],
129             [
130                 "u32",
131                 "client_index"
132             ],
133             [
134                 "u32",
135                 "context"
136             ],
137             [
138                 "u32",
139                 "acl_index"
140             ],
141             [
142                 "u8",
143                 "tag",
144                 64
145             ],
146             [
147                 "u32",
148                 "count"
149             ],
150             [
151                 "vl_api_acl_rule_t",
152                 "r",
153                 0,
154                 "count"
155             ],
156             {
157                 "crc": "0xe839997e"
158             }
159         ],
160         [
161             "acl_add_replace_reply",
162             [
163                 "u16",
164                 "_vl_msg_id"
165             ],
166             [
167                 "u32",
168                 "context"
169             ],
170             [
171                 "u32",
172                 "acl_index"
173             ],
174             [
175                 "i32",
176                 "retval"
177             ],
178             {
179                 "crc": "0xac407b0c"
180             }
181         ],
182         [
183             "acl_del",
184             [
185                 "u16",
186                 "_vl_msg_id"
187             ],
188             [
189                 "u32",
190                 "client_index"
191             ],
192             [
193                 "u32",
194                 "context"
195             ],
196             [
197                 "u32",
198                 "acl_index"
199             ],
200             {
201                 "crc": "0xef34fea4"
202             }
203         ],
204         [
205             "acl_del_reply",
206             [
207                 "u16",
208                 "_vl_msg_id"
209             ],
210             [
211                 "u32",
212                 "context"
213             ],
214             [
215                 "i32",
216                 "retval"
217             ],
218             {
219                 "crc": "0xe8d4e804"
220             }
221         ],
222         [
223             "acl_interface_add_del",
224             [
225                 "u16",
226                 "_vl_msg_id"
227             ],
228             [
229                 "u32",
230                 "client_index"
231             ],
232             [
233                 "u32",
234                 "context"
235             ],
236             [
237                 "u8",
238                 "is_add"
239             ],
240             [
241                 "u8",
242                 "is_input"
243             ],
244             [
245                 "u32",
246                 "sw_if_index"
247             ],
248             [
249                 "u32",
250                 "acl_index"
251             ],
252             {
253                 "crc": "0x0b2aedd1"
254             }
255         ],
256         [
257             "acl_interface_add_del_reply",
258             [
259                 "u16",
260                 "_vl_msg_id"
261             ],
262             [
263                 "u32",
264                 "context"
265             ],
266             [
267                 "i32",
268                 "retval"
269             ],
270             {
271                 "crc": "0xe8d4e804"
272             }
273         ],
274         [
275             "acl_interface_set_acl_list",
276             [
277                 "u16",
278                 "_vl_msg_id"
279             ],
280             [
281                 "u32",
282                 "client_index"
283             ],
284             [
285                 "u32",
286                 "context"
287             ],
288             [
289                 "u32",
290                 "sw_if_index"
291             ],
292             [
293                 "u8",
294                 "count"
295             ],
296             [
297                 "u8",
298                 "n_input"
299             ],
300             [
301                 "u32",
302                 "acls",
303                 0,
304                 "count"
305             ],
306             {
307                 "crc": "0x8baece38"
308             }
309         ],
310         [
311             "acl_interface_set_acl_list_reply",
312             [
313                 "u16",
314                 "_vl_msg_id"
315             ],
316             [
317                 "u32",
318                 "context"
319             ],
320             [
321                 "i32",
322                 "retval"
323             ],
324             {
325                 "crc": "0xe8d4e804"
326             }
327         ],
328         [
329             "acl_dump",
330             [
331                 "u16",
332                 "_vl_msg_id"
333             ],
334             [
335                 "u32",
336                 "client_index"
337             ],
338             [
339                 "u32",
340                 "context"
341             ],
342             [
343                 "u32",
344                 "acl_index"
345             ],
346             {
347                 "crc": "0xef34fea4"
348             }
349         ],
350         [
351             "acl_details",
352             [
353                 "u16",
354                 "_vl_msg_id"
355             ],
356             [
357                 "u32",
358                 "context"
359             ],
360             [
361                 "u32",
362                 "acl_index"
363             ],
364             [
365                 "u8",
366                 "tag",
367                 64
368             ],
369             [
370                 "u32",
371                 "count"
372             ],
373             [
374                 "vl_api_acl_rule_t",
375                 "r",
376                 0,
377                 "count"
378             ],
379             {
380                 "crc": "0x5bd895be"
381             }
382         ],
383         [
384             "acl_interface_list_dump",
385             [
386                 "u16",
387                 "_vl_msg_id"
388             ],
389             [
390                 "u32",
391                 "client_index"
392             ],
393             [
394                 "u32",
395                 "context"
396             ],
397             [
398                 "u32",
399                 "sw_if_index"
400             ],
401             {
402                 "crc": "0x529cb13f"
403             }
404         ],
405         [
406             "acl_interface_list_details",
407             [
408                 "u16",
409                 "_vl_msg_id"
410             ],
411             [
412                 "u32",
413                 "context"
414             ],
415             [
416                 "u32",
417                 "sw_if_index"
418             ],
419             [
420                 "u8",
421                 "count"
422             ],
423             [
424                 "u8",
425                 "n_input"
426             ],
427             [
428                 "u32",
429                 "acls",
430                 0,
431                 "count"
432             ],
433             {
434                 "crc": "0xd5e80809"
435             }
436         ],
437         [
438             "macip_acl_add",
439             [
440                 "u16",
441                 "_vl_msg_id"
442             ],
443             [
444                 "u32",
445                 "client_index"
446             ],
447             [
448                 "u32",
449                 "context"
450             ],
451             [
452                 "u8",
453                 "tag",
454                 64
455             ],
456             [
457                 "u32",
458                 "count"
459             ],
460             [
461                 "vl_api_macip_acl_rule_t",
462                 "r",
463                 0,
464                 "count"
465             ],
466             {
467                 "crc": "0xb3d3d65a"
468             }
469         ],
470         [
471             "macip_acl_add_reply",
472             [
473                 "u16",
474                 "_vl_msg_id"
475             ],
476             [
477                 "u32",
478                 "context"
479             ],
480             [
481                 "u32",
482                 "acl_index"
483             ],
484             [
485                 "i32",
486                 "retval"
487             ],
488             {
489                 "crc": "0xac407b0c"
490             }
491         ],
492         [
493             "macip_acl_add_replace",
494             [
495                 "u16",
496                 "_vl_msg_id"
497             ],
498             [
499                 "u32",
500                 "client_index"
501             ],
502             [
503                 "u32",
504                 "context"
505             ],
506             [
507                 "u32",
508                 "acl_index"
509             ],
510             [
511                 "u8",
512                 "tag",
513                 64
514             ],
515             [
516                 "u32",
517                 "count"
518             ],
519             [
520                 "vl_api_macip_acl_rule_t",
521                 "r",
522                 0,
523                 "count"
524             ],
525             {
526                 "crc": "0xa0e8c01b"
527             }
528         ],
529         [
530             "macip_acl_add_replace_reply",
531             [
532                 "u16",
533                 "_vl_msg_id"
534             ],
535             [
536                 "u32",
537                 "context"
538             ],
539             [
540                 "u32",
541                 "acl_index"
542             ],
543             [
544                 "i32",
545                 "retval"
546             ],
547             {
548                 "crc": "0xac407b0c"
549             }
550         ],
551         [
552             "macip_acl_del",
553             [
554                 "u16",
555                 "_vl_msg_id"
556             ],
557             [
558                 "u32",
559                 "client_index"
560             ],
561             [
562                 "u32",
563                 "context"
564             ],
565             [
566                 "u32",
567                 "acl_index"
568             ],
569             {
570                 "crc": "0xef34fea4"
571             }
572         ],
573         [
574             "macip_acl_del_reply",
575             [
576                 "u16",
577                 "_vl_msg_id"
578             ],
579             [
580                 "u32",
581                 "context"
582             ],
583             [
584                 "i32",
585                 "retval"
586             ],
587             {
588                 "crc": "0xe8d4e804"
589             }
590         ],
591         [
592             "macip_acl_interface_add_del",
593             [
594                 "u16",
595                 "_vl_msg_id"
596             ],
597             [
598                 "u32",
599                 "client_index"
600             ],
601             [
602                 "u32",
603                 "context"
604             ],
605             [
606                 "u8",
607                 "is_add"
608             ],
609             [
610                 "u32",
611                 "sw_if_index"
612             ],
613             [
614                 "u32",
615                 "acl_index"
616             ],
617             {
618                 "crc": "0x6a6be97c"
619             }
620         ],
621         [
622             "macip_acl_interface_add_del_reply",
623             [
624                 "u16",
625                 "_vl_msg_id"
626             ],
627             [
628                 "u32",
629                 "context"
630             ],
631             [
632                 "i32",
633                 "retval"
634             ],
635             {
636                 "crc": "0xe8d4e804"
637             }
638         ],
639         [
640             "macip_acl_dump",
641             [
642                 "u16",
643                 "_vl_msg_id"
644             ],
645             [
646                 "u32",
647                 "client_index"
648             ],
649             [
650                 "u32",
651                 "context"
652             ],
653             [
654                 "u32",
655                 "acl_index"
656             ],
657             {
658                 "crc": "0xef34fea4"
659             }
660         ],
661         [
662             "macip_acl_details",
663             [
664                 "u16",
665                 "_vl_msg_id"
666             ],
667             [
668                 "u32",
669                 "context"
670             ],
671             [
672                 "u32",
673                 "acl_index"
674             ],
675             [
676                 "u8",
677                 "tag",
678                 64
679             ],
680             [
681                 "u32",
682                 "count"
683             ],
684             [
685                 "vl_api_macip_acl_rule_t",
686                 "r",
687                 0,
688                 "count"
689             ],
690             {
691                 "crc": "0xdd2b55ba"
692             }
693         ],
694         [
695             "macip_acl_interface_get",
696             [
697                 "u16",
698                 "_vl_msg_id"
699             ],
700             [
701                 "u32",
702                 "client_index"
703             ],
704             [
705                 "u32",
706                 "context"
707             ],
708             {
709                 "crc": "0x51077d14"
710             }
711         ],
712         [
713             "macip_acl_interface_get_reply",
714             [
715                 "u16",
716                 "_vl_msg_id"
717             ],
718             [
719                 "u32",
720                 "context"
721             ],
722             [
723                 "u32",
724                 "count"
725             ],
726             [
727                 "u32",
728                 "acls",
729                 0,
730                 "count"
731             ],
732             {
733                 "crc": "0xaccf9b05"
734             }
735         ],
736         [
737             "macip_acl_interface_list_dump",
738             [
739                 "u16",
740                 "_vl_msg_id"
741             ],
742             [
743                 "u32",
744                 "client_index"
745             ],
746             [
747                 "u32",
748                 "context"
749             ],
750             [
751                 "u32",
752                 "sw_if_index"
753             ],
754             {
755                 "crc": "0x529cb13f"
756             }
757         ],
758         [
759             "macip_acl_interface_list_details",
760             [
761                 "u16",
762                 "_vl_msg_id"
763             ],
764             [
765                 "u32",
766                 "context"
767             ],
768             [
769                 "u32",
770                 "sw_if_index"
771             ],
772             [
773                 "u8",
774                 "count"
775             ],
776             [
777                 "u32",
778                 "acls",
779                 0,
780                 "count"
781             ],
782             {
783                 "crc": "0x29783fa0"
784             }
785         ],
786         [
787             "acl_interface_set_etype_whitelist",
788             [
789                 "u16",
790                 "_vl_msg_id"
791             ],
792             [
793                 "u32",
794                 "client_index"
795             ],
796             [
797                 "u32",
798                 "context"
799             ],
800             [
801                 "u32",
802                 "sw_if_index"
803             ],
804             [
805                 "u8",
806                 "count"
807             ],
808             [
809                 "u8",
810                 "n_input"
811             ],
812             [
813                 "u16",
814                 "whitelist",
815                 0,
816                 "count"
817             ],
818             {
819                 "crc": "0xf515efc5"
820             }
821         ],
822         [
823             "acl_interface_set_etype_whitelist_reply",
824             [
825                 "u16",
826                 "_vl_msg_id"
827             ],
828             [
829                 "u32",
830                 "context"
831             ],
832             [
833                 "i32",
834                 "retval"
835             ],
836             {
837                 "crc": "0xe8d4e804"
838             }
839         ],
840         [
841             "acl_interface_etype_whitelist_dump",
842             [
843                 "u16",
844                 "_vl_msg_id"
845             ],
846             [
847                 "u32",
848                 "client_index"
849             ],
850             [
851                 "u32",
852                 "context"
853             ],
854             [
855                 "u32",
856                 "sw_if_index"
857             ],
858             {
859                 "crc": "0x529cb13f"
860             }
861         ],
862         [
863             "acl_interface_etype_whitelist_details",
864             [
865                 "u16",
866                 "_vl_msg_id"
867             ],
868             [
869                 "u32",
870                 "context"
871             ],
872             [
873                 "u32",
874                 "sw_if_index"
875             ],
876             [
877                 "u8",
878                 "count"
879             ],
880             [
881                 "u8",
882                 "n_input"
883             ],
884             [
885                 "u16",
886                 "whitelist",
887                 0,
888                 "count"
889             ],
890             {
891                 "crc": "0x6a5d4e81"
892             }
893         ]
894     ],
895     "vl_api_version": "0x8ed22cb9",
896     "unions": [],
897     "services": {
898         "acl_plugin_get_version": {
899             "reply": "acl_plugin_get_version_reply"
900         },
901         "acl_dump": {
902             "reply": "acl_details",
903             "stream": true
904         },
905         "acl_interface_add_del": {
906             "reply": "acl_interface_add_del_reply"
907         },
908         "acl_del": {
909             "reply": "acl_del_reply"
910         },
911         "macip_acl_del": {
912             "reply": "macip_acl_del_reply"
913         },
914         "acl_plugin_control_ping": {
915             "reply": "acl_plugin_control_ping_reply"
916         },
917         "macip_acl_interface_get": {
918             "reply": "macip_acl_interface_get_reply"
919         },
920         "acl_interface_etype_whitelist_dump": {
921             "reply": "acl_interface_etype_whitelist_details",
922             "stream": true
923         },
924         "macip_acl_interface_add_del": {
925             "reply": "macip_acl_interface_add_del_reply"
926         },
927         "acl_add_replace": {
928             "reply": "acl_add_replace_reply"
929         },
930         "acl_plugin_get_conn_table_max_entries": {
931             "reply": "acl_plugin_get_conn_table_max_entries_reply"
932         },
933         "acl_interface_list_dump": {
934             "reply": "acl_interface_list_details",
935             "stream": true
936         },
937         "acl_interface_set_acl_list": {
938             "reply": "acl_interface_set_acl_list_reply"
939         },
940         "macip_acl_add": {
941             "reply": "macip_acl_add_reply"
942         },
943         "acl_interface_set_etype_whitelist": {
944             "reply": "acl_interface_set_etype_whitelist_reply"
945         },
946         "macip_acl_add_replace": {
947             "reply": "macip_acl_add_replace_reply"
948         },
949         "macip_acl_dump": {
950             "reply": "macip_acl_details",
951             "stream": true
952         },
953         "macip_acl_interface_list_dump": {
954             "reply": "macip_acl_interface_list_details",
955             "stream": true
956         }
957     },
958     "enums": [],
959     "types": [
960         [
961             "acl_rule",
962             [
963                 "u8",
964                 "is_permit"
965             ],
966             [
967                 "u8",
968                 "is_ipv6"
969             ],
970             [
971                 "u8",
972                 "src_ip_addr",
973                 16
974             ],
975             [
976                 "u8",
977                 "src_ip_prefix_len"
978             ],
979             [
980                 "u8",
981                 "dst_ip_addr",
982                 16
983             ],
984             [
985                 "u8",
986                 "dst_ip_prefix_len"
987             ],
988             [
989                 "u8",
990                 "proto"
991             ],
992             [
993                 "u16",
994                 "srcport_or_icmptype_first"
995             ],
996             [
997                 "u16",
998                 "srcport_or_icmptype_last"
999             ],
1000             [
1001                 "u16",
1002                 "dstport_or_icmpcode_first"
1003             ],
1004             [
1005                 "u16",
1006                 "dstport_or_icmpcode_last"
1007             ],
1008             [
1009                 "u8",
1010                 "tcp_flags_mask"
1011             ],
1012             [
1013                 "u8",
1014                 "tcp_flags_value"
1015             ],
1016             {
1017                 "crc": "0x6f99bf4d"
1018             }
1019         ],
1020         [
1021             "macip_acl_rule",
1022             [
1023                 "u8",
1024                 "is_permit"
1025             ],
1026             [
1027                 "u8",
1028                 "is_ipv6"
1029             ],
1030             [
1031                 "u8",
1032                 "src_mac",
1033                 6
1034             ],
1035             [
1036                 "u8",
1037                 "src_mac_mask",
1038                 6
1039             ],
1040             [
1041                 "u8",
1042                 "src_ip_addr",
1043                 16
1044             ],
1045             [
1046                 "u8",
1047                 "src_ip_prefix_len"
1048             ],
1049             {
1050                 "crc": "0x70589f1e"
1051             }
1052         ]
1053     ],
1054     "aliases": {}
1055 }