FD.io VPP  v21.01.1
Vector Packet Processing
gre.api File Reference

Go to the source code of this file.

Data Structures

struct  vl_api_gre_tunnel_add_del_t
 Add or delete a single GRE tunnel. More...
 
struct  vl_api_gre_tunnel_add_del_reply_t
 Add or delete a single GRE tunnel. More...
 
struct  vl_api_gre_tunnel_dump_t
 Dump details of all or just a single GRE tunnel. More...
 
struct  vl_api_gre_tunnel_details_t
 Details response for one of the requested GRE tunnels. More...
 

Enumerations

enum  gre_tunnel_type : u8 { GRE_API_TUNNEL_TYPE_L3 = 0, GRE_API_TUNNEL_TYPE_TEB, GRE_API_TUNNEL_TYPE_ERSPAN }
 A GRE tunnel type. More...
 

Variables

option version = "2.1.1"
 
import vnet interface_types api
 
typedef gre_tunnel
 A composite type uniquely defining a GRE tunnel. More...
 
vl_api_tunnel_mode_t mode
 
vl_api_tunnel_encap_decap_flags_t flags
 
u16 session_id
 
u32 instance
 
u32 outer_table_id
 
vl_api_interface_index_t sw_if_index
 
vl_api_address_t src
 
vl_api_address_t dst
 

Enumeration Type Documentation

◆ gre_tunnel_type

A GRE tunnel type.

Enumerator
GRE_API_TUNNEL_TYPE_L3 
GRE_API_TUNNEL_TYPE_TEB 
GRE_API_TUNNEL_TYPE_ERSPAN 

Definition at line 25 of file gre.api.

Variable Documentation

◆ api

import vnet ip ip_types api

Definition at line 19 of file gre.api.

◆ dst

vl_api_address_t dst

Definition at line 55 of file gre.api.

◆ flags

vl_api_tunnel_encap_decap_flags_t flags

Definition at line 49 of file gre.api.

◆ gre_tunnel

typedef gre_tunnel
Initial value:
{
vl_api_gre_tunnel_type_t type
vl_api_fib_path_type_t type
Definition: fib_types.api:123

A composite type uniquely defining a GRE tunnel.

Template Parameters
type- tunnel type (see enum definition), 0: L3, 1: TEB, 2: ERSPAN
mode- P2P or P2MP
flags- to control encap/decap behaviour
session_id- session for ERSPAN tunnel, range 0-1023
instance- optional unique custom device instance, else ~0.
outer_table_id- Encap FIB table ID
sw_if_index- ignored on create/delete, present in details.
src- Source IP address
dst- Destination IP address, can be multicast

Definition at line 46 of file gre.api.

◆ instance

u32 instance

Definition at line 51 of file gre.api.

◆ mode

vl_api_tunnel_mode_t mode

Definition at line 48 of file gre.api.

◆ outer_table_id

u32 outer_table_id

Definition at line 52 of file gre.api.

◆ session_id

u16 session_id

Definition at line 50 of file gre.api.

◆ src

vl_api_address_t src

Definition at line 54 of file gre.api.

◆ sw_if_index

vl_api_interface_index_t sw_if_index

Definition at line 53 of file gre.api.

◆ version

option version = "2.1.1"

Definition at line 17 of file gre.api.