summaryrefslogtreecommitdiffstats
path: root/cmd/binapi-generator/testdata/acl.api.json
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/binapi-generator/testdata/acl.api.json')
-rw-r--r--cmd/binapi-generator/testdata/acl.api.json67
1 files changed, 67 insertions, 0 deletions
diff --git a/cmd/binapi-generator/testdata/acl.api.json b/cmd/binapi-generator/testdata/acl.api.json
new file mode 100644
index 0000000..91d3d2f
--- /dev/null
+++ b/cmd/binapi-generator/testdata/acl.api.json
@@ -0,0 +1,67 @@
+{
+ "types" : [
+ ["acl_rule",
+ ["u8", "is_permit"],
+ ["u8", "is_ipv6"],
+ ["u8", "src_ip_addr", 16],
+ ["u8", "src_ip_prefix_len"],
+ ["u8", "dst_ip_addr", 16],
+ ["u8", "dst_ip_prefix_len"],
+ ["u8", "proto"],
+ ["u16", "srcport_or_icmptype_first"],
+ ["u16", "srcport_or_icmptype_last"],
+ ["u16", "dstport_or_icmpcode_first"],
+ ["u16", "dstport_or_icmpcode_last"],
+ ["u8", "tcp_flags_mask"],
+ ["u8", "tcp_flags_value"],
+ {"crc" : "0x2715e1c0"}
+ ],
+ ["macip_acl_rule",
+ ["u8", "is_permit"],
+ ["u8", "is_ipv6"],
+ ["u8", "src_mac", 6],
+ ["u8", "src_mac_mask", 6],
+ ["u8", "src_ip_addr", 16],
+ ["u8", "src_ip_prefix_len"],
+ {"crc" : "0x6723f13e"}
+ ]
+ ],
+ "messages" : [
+ ["acl_plugin_get_version",
+ ["u16", "_vl_msg_id"],
+ ["u32", "client_index"],
+ ["u32", "context"],
+ {"crc" : "0xd7c07748"}
+ ],
+ ["acl_plugin_get_version_reply",
+ ["u16", "_vl_msg_id"],
+ ["u32", "context"],
+ ["u32", "major"],
+ ["u32", "minor"],
+ {"crc" : "0x43eb59a5"}
+ ],
+ ["acl_add_replace",
+ ["u16", "_vl_msg_id"],
+ ["u32", "client_index"],
+ ["u32", "context"],
+ ["u32", "acl_index"],
+ ["u8", "tag", 64],
+ {"crc" : "0x3c317936"}
+ ],
+ ["acl_add_replace_reply",
+ ["u16", "_vl_msg_id"],
+ ["u32", "context"],
+ ["u32", "acl_index"],
+ ["i32", "retval"],
+ {"crc" : "0xa5e6d0cf"}
+ ],
+ ["acl_del",
+ ["u16", "_vl_msg_id"],
+ ["u32", "client_index"],
+ ["u32", "context"],
+ ["u32", "acl_index"],
+ {"crc" : "0x82cc30ed"}
+ ]
+ ],
+"vl_api_version" :"0x3cd02d84"
+}