2 * Copyright (c) 2020 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 import "vnet/ip/ip_types.api";
18 autoreply define test_prefix {
22 enumflag test_enumflags {
28 autoreply define test_enum {
29 vl_api_test_enumflags_t flags;
32 typedef test_stringtype {
36 autoreply define test_string {
37 vl_api_test_stringtype_t str;
40 autoreply define test_string2 {
44 /* Test of toplevel VLA with basetype */
45 autoreply define test_vla {
50 /* Test of toplevel VLA with u8 */
51 autoreply define test_vla2 {
55 /* Test of toplevel VLA with user type */
56 typedef test_vlatype {
59 autoreply define test_vla3 {
61 vl_api_test_vlatype_t vla[count];
63 /* Test of typedefed VLA */
64 typedef test_vlatype2 {
68 autoreply define test_vla4 {
69 vl_api_test_vlatype2_t data;
71 /* u8 string in typedef */
72 typedef test_vlatype3 {
76 autoreply define test_vla5 {
77 vl_api_test_vlatype3_t data;