summaryrefslogtreecommitdiffstats
path: root/cmd/binapi-generator/testdata/acl.api.json
blob: 91d3d2f0310996335cea43a5a64eb3082be6af2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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"
}