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