FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
gre.api
Go to the documentation of this file.
1 /* Hey Emacs use -*- mode: C -*- */
2 /*
3  * Copyright (c) 2015-2019 Cisco and/or its affiliates.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 option version = "2.0.1";
18 
19 import "vnet/interface_types.api";
20 import "vnet/ip/ip_types.api";
21 
22 /** \brief A GRE tunnel type
23 */
25 {
29 };
30 
31 /** \brief A GRE tunnel mode
32 */
34 {
35  /* point-to-point */
37  /* multi-point */
39 };
40 
41 /** \brief A GRE tunnel
42  @param client_index - opaque cookie to identify the sender
43  @param context - sender context, to match reply w/ request
44  @param tunnel_type - 0: L3, 1: TEB, 2: ERSPAN
45  @param instance - optional unique custom device instance, else ~0.
46  @param src - Source IP address
47  @param dst - Destination IP address, can be multicast
48  @param outer_table_id - Encap FIB table ID
49  @param session_id - session for ERSPAN tunnel, range 0-1023
50  @param sw_if_index - ignored on create/delete, present in details.
51 */
52 typedef gre_tunnel
53 {
54  vl_api_gre_tunnel_type_t type;
55  vl_api_gre_tunnel_mode_t mode;
59  vl_api_interface_index_t sw_if_index;
60  vl_api_address_t src;
61  vl_api_address_t dst;
62 };
63 
64 define gre_tunnel_add_del
65 {
68  bool is_add;
69  vl_api_gre_tunnel_t tunnel;
70 };
71 
72 define gre_tunnel_add_del_reply
73 {
76  vl_api_interface_index_t sw_if_index;
77 };
78 
79 define gre_tunnel_dump
80 {
83  vl_api_interface_index_t sw_if_index;
84 };
85 
86 define gre_tunnel_details
87 {
89  vl_api_gre_tunnel_t tunnel;
90 };
91 
92 /*
93  * Local Variables:
94  * eval: (c-set-style "gnu")
95  * End:
96  */
gre_tunnel_mode
A GRE tunnel mode.
Definition: gre.api:33
option version
Definition: gre.api:17
gre_tunnel_type
A GRE tunnel type.
Definition: gre.api:24
vl_api_address_t src
Definition: gre.api:60
unsigned char u8
Definition: types.h:56
vl_api_interface_index_t sw_if_index
Definition: gre.api:76
typedef gre_tunnel
A GRE tunnel.
Definition: gre.api:53
vl_api_interface_index_t sw_if_index
Definition: gre.api:59
unsigned int u32
Definition: types.h:88
vl_api_gre_tunnel_mode_t mode
Definition: gre.api:55
vl_api_fib_path_type_t type
Definition: fib_types.api:123
unsigned short u16
Definition: types.h:57
u32 outer_table_id
Definition: gre.api:58
vl_api_address_t dst
Definition: gre.api:61
vl_api_gre_tunnel_t tunnel
Definition: gre.api:89
vl_api_gre_tunnel_t tunnel
Definition: gre.api:69
signed int i32
Definition: types.h:77
u16 session_id
Definition: gre.api:56
vl_api_interface_index_t sw_if_index
Definition: gre.api:83
u32 instance
Definition: gre.api:57