From c38cb25d746736f062ee16e87f553c8a4ec5fced Mon Sep 17 00:00:00 2001 From: Rastislav Szabo Date: Mon, 22 May 2017 13:59:34 +0200 Subject: binapi-generator renamed & moved, finished documentation Change-Id: I7d3b53fa238e822b36a6a82c61ffb792da3898bf Signed-off-by: Rastislav Szabo --- cmd/binapi-generator/testdata/acl.api.json | 67 ++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 cmd/binapi-generator/testdata/acl.api.json (limited to 'cmd/binapi-generator/testdata/acl.api.json') 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" +} -- cgit 1.2.3-korg