VPPAPIGEN: vppapigen replacement in Python PLY.
[vpp.git] / src / vnet / gre / gre.api
1 /*
2  * Copyright (c) 2015-2016 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:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
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.
14  */
15
16 option version = "1.0.0";
17
18 define gre_add_del_tunnel
19 {
20   u32 client_index;
21   u32 context;
22   u8 is_add;
23   u8 is_ipv6;
24   u8 teb;
25   u8 src_address[16];
26   u8 dst_address[16];
27   u32 outer_fib_id;
28 };
29
30 define gre_add_del_tunnel_reply
31 {
32   u32 context;
33   i32 retval;
34   u32 sw_if_index;
35 };
36
37 define gre_tunnel_dump
38 {
39   u32 client_index;
40   u32 context;
41   u32 sw_if_index;
42 };
43
44 define gre_tunnel_details
45 {
46   u32 context;
47   u32 sw_if_index;
48   u8 is_ipv6;
49   u8 teb;
50   u8 src_address[16];
51   u8 dst_address[16];
52   u32 outer_fib_id;
53 };
54
55 /*
56  * Local Variables:
57  * eval: (c-set-style "gnu")
58  * End:
59  */