binapi-generator renamed & moved, finished documentation
[govpp.git] / cmd / binapi-generator / testdata / acl.api.json
1 {
2     "types" : [
3         ["acl_rule",
4             ["u8", "is_permit"],
5             ["u8", "is_ipv6"],
6             ["u8", "src_ip_addr", 16],
7             ["u8", "src_ip_prefix_len"],
8             ["u8", "dst_ip_addr", 16],
9             ["u8", "dst_ip_prefix_len"],
10             ["u8", "proto"],
11             ["u16", "srcport_or_icmptype_first"],
12             ["u16", "srcport_or_icmptype_last"],
13             ["u16", "dstport_or_icmpcode_first"],
14             ["u16", "dstport_or_icmpcode_last"],
15             ["u8", "tcp_flags_mask"],
16             ["u8", "tcp_flags_value"],
17             {"crc" : "0x2715e1c0"}
18         ],
19         ["macip_acl_rule",
20             ["u8", "is_permit"],
21             ["u8", "is_ipv6"],
22             ["u8", "src_mac", 6],
23             ["u8", "src_mac_mask", 6],
24             ["u8", "src_ip_addr", 16],
25             ["u8", "src_ip_prefix_len"],
26             {"crc" : "0x6723f13e"}
27         ]
28     ],
29     "messages" : [
30         ["acl_plugin_get_version",
31             ["u16", "_vl_msg_id"],
32             ["u32", "client_index"],
33             ["u32", "context"],
34             {"crc" : "0xd7c07748"}
35         ],
36         ["acl_plugin_get_version_reply",
37             ["u16", "_vl_msg_id"],
38             ["u32", "context"],
39             ["u32", "major"],
40             ["u32", "minor"],
41             {"crc" : "0x43eb59a5"}
42         ],
43         ["acl_add_replace",
44             ["u16", "_vl_msg_id"],
45             ["u32", "client_index"],
46             ["u32", "context"],
47             ["u32", "acl_index"],
48             ["u8", "tag", 64],
49             {"crc" : "0x3c317936"}
50         ],
51         ["acl_add_replace_reply",
52             ["u16", "_vl_msg_id"],
53             ["u32", "context"],
54             ["u32", "acl_index"],
55             ["i32", "retval"],
56             {"crc" : "0xa5e6d0cf"}
57         ],
58         ["acl_del",
59             ["u16", "_vl_msg_id"],
60             ["u32", "client_index"],
61             ["u32", "context"],
62             ["u32", "acl_index"],
63             {"crc" : "0x82cc30ed"}
64         ]
65     ],
66 "vl_api_version" :"0x3cd02d84"
67 }