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