1 /* Hey Emacs use -*- mode: C -*- */
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:
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 option version = "2.0.0";
19 import "vnet/interface_types.api";
20 import "vnet/ip/ip_types.api";
22 /** \brief A GRE tunnel type
26 GRE_API_TUNNEL_TYPE_L3 = 0,
27 GRE_API_TUNNEL_TYPE_TEB,
28 GRE_API_TUNNEL_TYPE_ERSPAN,
31 /** \brief A GRE tunnel
32 @param client_index - opaque cookie to identify the sender
33 @param context - sender context, to match reply w/ request
34 @param tunnel_type - 0: L3, 1: TEB, 2: ERSPAN
35 @param instance - optional unique custom device instance, else ~0.
36 @param src - Source IP address
37 @param dst - Destination IP address, can be multicast
38 @param outer_fib_id - Encap FIB table ID
39 @param session_id - session for ERSPAN tunnel, range 0-1023
40 @param sw_if_index - ignored on create/delete, present in details.
47 vl_api_gre_tunnel_type_t type;
50 vl_api_interface_index_t sw_if_index;
55 define gre_tunnel_add_del
60 vl_api_gre_tunnel_t tunnel;
63 define gre_tunnel_add_del_reply
67 vl_api_interface_index_t sw_if_index;
70 define gre_tunnel_dump
74 vl_api_interface_index_t sw_if_index;
77 define gre_tunnel_details
80 vl_api_gre_tunnel_t tunnel;
85 * eval: (c-set-style "gnu")