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 option version="0.0.0";
17 import "vnet/ip/ip_types.api";
18 import "vnet/interface_types.api";
20 autoreply define test_prefix {
24 enumflag test_enumflags {
30 autoreply define test_enum {
31 vl_api_test_enumflags_t flags;
34 typedef test_stringtype {
38 autoreply define test_string {
39 vl_api_test_stringtype_t str;
42 autoreply define test_string2 {
46 /* Test of toplevel VLA with basetype */
47 autoreply define test_vla {
52 /* Test of toplevel VLA with u8 */
53 autoreply define test_vla2 {
57 /* Test of toplevel VLA with user type */
58 typedef test_vlatype {
61 autoreply define test_vla3 {
63 vl_api_test_vlatype_t vla[count];
65 /* Test of typedefed VLA */
66 typedef test_vlatype2 {
70 autoreply define test_vla4 {
71 vl_api_test_vlatype2_t data;
73 /* u8 string in typedef */
74 typedef test_vlatype3 {
78 autoreply define test_vla5 {
79 vl_api_test_vlatype3_t data;
83 autoreply define test_addresses {
86 autoreply define test_addresses2 {
87 vl_api_address_t a[2];
89 autoreply define test_addresses3 {
91 vl_api_address_t a[n];
95 autoreply define test_empty {
101 autoreply define test_interface {
102 vl_api_interface_index_t sw_if_index;