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";
17 import "vnet/interface_types.api";
19 autoreply define test_prefix {
23 enumflag test_enumflags {
29 autoreply define test_enum {
30 vl_api_test_enumflags_t flags;
33 typedef test_stringtype {
37 autoreply define test_string {
38 vl_api_test_stringtype_t str;
41 autoreply define test_string2 {
45 /* Test of toplevel VLA with basetype */
46 autoreply define test_vla {
51 /* Test of toplevel VLA with u8 */
52 autoreply define test_vla2 {
56 /* Test of toplevel VLA with user type */
57 typedef test_vlatype {
60 autoreply define test_vla3 {
62 vl_api_test_vlatype_t vla[count];
64 /* Test of typedefed VLA */
65 typedef test_vlatype2 {
69 autoreply define test_vla4 {
70 vl_api_test_vlatype2_t data;
72 /* u8 string in typedef */
73 typedef test_vlatype3 {
77 autoreply define test_vla5 {
78 vl_api_test_vlatype3_t data;
82 autoreply define test_addresses {
85 autoreply define test_addresses2 {
86 vl_api_address_t a[2];
88 autoreply define test_addresses3 {
90 vl_api_address_t a[n];
94 autoreply define test_empty {
100 autoreply define test_interface {
101 vl_api_interface_index_t sw_if_index;