FD.io VPP
v18.10-34-gcce845e
Vector Packet Processing
Main Page
Related Pages
Modules
Namespaces
Data Structures
Source
Files
Symbols
vxlan.api
Go to the documentation of this file.
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.1.0"
;
17
18
/** \brief Create or delete a VXLAN tunnel
19
@param client_index - opaque cookie to identify the sender
20
@param context - sender context, to match reply w/ request
21
@param is_add - Use 1 to create the tunnel, 0 to remove it
22
@param is_ipv6 - Use 0 for IPv4, 1 for IPv6
23
@param instance - optional unique custom device instance, else ~0.
24
@param src_address - Source IP address
25
@param dst_address - Destination IP address, can be multicast
26
@param mcast_sw_if_index - Interface for multicast destination
27
@param encap_vrf_id - Encap route table FIB index
28
@param decap_next_index - Name of decap next graph node
29
@param vni - The VXLAN Network Identifier, uint24
30
*/
31
define vxlan_add_del_tunnel
32
{
33
u32
client_index
;
34
u32
context
;
35
u8
is_add
;
36
u8
is_ipv6
;
37
u32
instance
;
/* If non-~0, specifies a custom dev instance */
38
u8
src_address
[16];
39
u8
dst_address[16];
40
u32
mcast_sw_if_index
;
41
u32
encap_vrf_id
;
42
u32
decap_next_index
;
43
u32
vni
;
44
};
45
46
define vxlan_add_del_tunnel_reply
47
{
48
u32
context
;
49
i32
retval
;
50
u32
sw_if_index
;
51
};
52
53
define vxlan_tunnel_dump
54
{
55
u32
client_index
;
56
u32
context
;
57
u32
sw_if_index
;
58
};
59
60
define vxlan_tunnel_details
61
{
62
u32
context
;
63
u32
sw_if_index
;
64
u32
instance
;
65
u8
src_address
[16];
66
u8
dst_address[16];
67
u32
mcast_sw_if_index
;
68
u32
encap_vrf_id
;
69
u32
decap_next_index
;
70
u32
vni
;
71
u8
is_ipv6
;
72
};
73
74
/** \brief Interface set vxlan-bypass request
75
@param client_index - opaque cookie to identify the sender
76
@param context - sender context, to match reply w/ request
77
@param sw_if_index - interface used to reach neighbor
78
@param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass
79
@param enable - if non-zero enable, else disable
80
*/
81
autoreply define sw_interface_set_vxlan_bypass
82
{
83
u32
client_index
;
84
u32
context
;
85
u32
sw_if_index
;
86
u8
is_ipv6
;
87
u8
enable
;
88
};
89
90
/** \brief Offload vxlan rx request
91
@param client_index - opaque cookie to identify the sender
92
@param context - sender context, to match reply w/ request
93
@param hw_if_index - rx hw interface
94
@param sw_if_index - vxlan interface to offload
95
@param enable - if non-zero enable, else disable
96
*/
97
autoreply define vxlan_offload_rx
98
{
99
u32
client_index
;
100
u32
context
;
101
u32
hw_if_index
;
102
u32
sw_if_index
;
103
u8
enable
;
104
};
vl_api_vxlan_add_del_tunnel_t::is_add
u8 is_add
Definition:
vxlan.api:35
vl_api_vxlan_add_del_tunnel_t::instance
u32 instance
Definition:
vxlan.api:37
vl_api_vxlan_tunnel_dump_t::context
u32 context
Definition:
vxlan.api:56
vl_api_vxlan_add_del_tunnel_t::client_index
u32 client_index
Definition:
vxlan.api:33
vl_api_vxlan_add_del_tunnel_t::decap_next_index
u32 decap_next_index
Definition:
vxlan.api:42
vl_api_vxlan_tunnel_details_t::is_ipv6
u8 is_ipv6
Definition:
vxlan.api:71
vl_api_vxlan_tunnel_details_t::context
u32 context
Definition:
vxlan.api:62
u8
unsigned char u8
Definition:
types.h:56
vl_api_vxlan_tunnel_details_t::encap_vrf_id
u32 encap_vrf_id
Definition:
vxlan.api:68
vl_api_vxlan_offload_rx_t::client_index
u32 client_index
Definition:
vxlan.api:99
vl_api_vxlan_tunnel_dump_t::sw_if_index
u32 sw_if_index
Definition:
vxlan.api:57
u32
unsigned int u32
Definition:
types.h:88
vl_api_vxlan_tunnel_details_t::decap_next_index
u32 decap_next_index
Definition:
vxlan.api:69
vl_api_vxlan_tunnel_details_t::mcast_sw_if_index
u32 mcast_sw_if_index
Definition:
vxlan.api:67
src_address
vl_api_address_union_t src_address
Definition:
ip_types.api:49
vl_api_sw_interface_set_vxlan_bypass_t::enable
u8 enable
Definition:
vxlan.api:87
vl_api_sw_interface_set_vxlan_bypass_t::client_index
u32 client_index
Definition:
vxlan.api:83
vl_api_vxlan_add_del_tunnel_t::context
u32 context
Definition:
vxlan.api:34
vl_api_vxlan_add_del_tunnel_t::encap_vrf_id
u32 encap_vrf_id
Definition:
vxlan.api:41
vl_api_vxlan_add_del_tunnel_t::is_ipv6
u8 is_ipv6
Definition:
vxlan.api:36
version
option version
Definition:
vxlan.api:16
vl_api_sw_interface_set_vxlan_bypass_t::sw_if_index
u32 sw_if_index
Definition:
vxlan.api:85
vl_api_vxlan_tunnel_details_t::sw_if_index
u32 sw_if_index
Definition:
vxlan.api:63
vl_api_vxlan_add_del_tunnel_t::mcast_sw_if_index
u32 mcast_sw_if_index
Definition:
vxlan.api:40
i32
signed int i32
Definition:
types.h:77
vl_api_vxlan_tunnel_dump_t::client_index
u32 client_index
Definition:
vxlan.api:55
vl_api_vxlan_tunnel_details_t::vni
u32 vni
Definition:
vxlan.api:70
vl_api_vxlan_offload_rx_t::context
u32 context
Definition:
vxlan.api:100
vl_api_vxlan_add_del_tunnel_reply_t::context
u32 context
Definition:
vxlan.api:48
vl_api_vxlan_add_del_tunnel_t::vni
u32 vni
Definition:
vxlan.api:43
vl_api_sw_interface_set_vxlan_bypass_t::context
u32 context
Definition:
vxlan.api:84
vl_api_vxlan_offload_rx_t::sw_if_index
u32 sw_if_index
Definition:
vxlan.api:102
vl_api_vxlan_tunnel_details_t::instance
u32 instance
Definition:
vxlan.api:64
vl_api_vxlan_offload_rx_t::enable
u8 enable
Definition:
vxlan.api:103
vl_api_vxlan_offload_rx_t::hw_if_index
u32 hw_if_index
Definition:
vxlan.api:101
vl_api_sw_interface_set_vxlan_bypass_t::is_ipv6
u8 is_ipv6
Definition:
vxlan.api:86
vl_api_vxlan_add_del_tunnel_reply_t::sw_if_index
u32 sw_if_index
Definition:
vxlan.api:50
vl_api_vxlan_add_del_tunnel_reply_t::retval
i32 retval
Definition:
vxlan.api:49
src
vnet
vxlan
vxlan.api
Generated on Thu May 16 2019 14:27:04 for FD.io VPP by
1.8.11