FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
l2.api File Reference

Go to the source code of this file.

Data Structures

struct  vl_api_l2_xconnect_details_t
 Reply to l2_xconnect_dump. More...
 
struct  vl_api_l2_xconnect_dump_t
 Dump L2 XConnects. More...
 
struct  vl_api_l2_fib_table_details_t
 l2 fib table details structure More...
 
struct  vl_api_l2_fib_table_dump_t
 Dump l2 fib (aka bridge domain) table. More...
 
struct  vl_api_l2_fib_clear_table_t
 L2 fib clear table request, clear all mac entries in the l2 fib. More...
 
struct  vl_api_l2fib_flush_all_t
 L2 FIB flush all entries. More...
 
struct  vl_api_l2fib_flush_bd_t
 L2 FIB flush bridge domain entries. More...
 
struct  vl_api_l2fib_flush_int_t
 L2 FIB flush interface entries. More...
 
struct  vl_api_l2fib_add_del_t
 L2 FIB add entry request. More...
 
struct  vl_api_want_l2_macs_events_t
 Register to receive L2 MAC events for learned and aged MAC. More...
 
struct  vl_api_l2_macs_event_t
 L2 MAC event for a list of learned or aged MACs. More...
 
struct  vl_api_l2_flags_t
 Set interface L2 flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM bits). More...
 
struct  vl_api_l2_flags_reply_t
 Set interface L2 flags response. More...
 
struct  vl_api_bridge_domain_set_mac_age_t
 L2 bridge domain set mac age. More...
 
struct  vl_api_bridge_domain_add_del_t
 L2 bridge domain add or delete request. More...
 
struct  vl_api_bridge_domain_dump_t
 L2 bridge domain request operational state details. More...
 
struct  vl_api_bridge_domain_details_t
 L2 bridge domain operational state response. More...
 
struct  vl_api_bridge_flags_t
 Set bridge flags request. More...
 
struct  vl_api_bridge_flags_reply_t
 Set bridge flags response. More...
 
struct  vl_api_l2_interface_vlan_tag_rewrite_t
 L2 interface vlan tag rewrite configure request. More...
 
struct  vl_api_l2_interface_pbb_tag_rewrite_t
 L2 interface pbb tag rewrite configure request. More...
 
struct  vl_api_l2_patch_add_del_t
 L2 interface patch add / del request. More...
 
struct  vl_api_sw_interface_set_l2_xconnect_t
 Set L2 XConnect between two interfaces request. More...
 
struct  vl_api_sw_interface_set_l2_bridge_t
 Interface bridge mode request. More...
 
struct  vl_api_bd_ip_mac_add_del_t
 
struct  vl_api_bd_ip_mac_flush_t
 Flush bridge domain IP to MAC entries. More...
 
struct  vl_api_bd_ip_mac_details_t
 bridge domain IP to MAC entry details structure More...
 
struct  vl_api_bd_ip_mac_dump_t
 Dump bridge domain IP to MAC entries. More...
 
struct  vl_api_l2_interface_efp_filter_t
 L2 interface ethernet flow point filtering enable/disable request. More...
 
struct  vl_api_sw_interface_set_vpath_t
 Interface set vpath request. More...
 
struct  vl_api_bvi_create_t
 Create BVI interface instance request. More...
 
struct  vl_api_bvi_create_reply_t
 Create BVI interface instance response. More...
 
struct  vl_api_bvi_delete_t
 Delete BVI interface request. More...
 
struct  vl_api_want_l2_arp_term_events_t
 Register for IP4 ARP resolution event on receing ARP reply or MAC/IP info from ARP requests in L2 BDs. More...
 
struct  vl_api_l2_arp_term_event_t
 Tell client about an IP4 ARP resolution event or MAC/IP info from ARP requests in L2 BDs. More...
 

Enumerations

enum  bd_flags {
  BRIDGE_API_FLAG_NONE = 0x0, BRIDGE_API_FLAG_LEARN = 0x1, BRIDGE_API_FLAG_FWD = 0x2, BRIDGE_API_FLAG_FLOOD = 0x4,
  BRIDGE_API_FLAG_UU_FLOOD = 0x8, BRIDGE_API_FLAG_ARP_TERM = 0x10, BRIDGE_API_FLAG_ARP_UFWD = 0x20
}
 Flags that can be changed on a bridge domain. More...
 
enum  l2_port_type { L2_API_PORT_TYPE_NORMAL = 0, L2_API_PORT_TYPE_BVI = 1, L2_API_PORT_TYPE_UU_FWD = 2 }
 An enumeration of the type of ports that can be added to a bridge domain. More...
 

Variables

option version = "2.2.2"
 
import vnet ip ip_types api
 
typedef mac_entry
 Entry for learned or aged MAC in L2 MAC Events. More...
 
u8 mac_addr [6]
 
u8 action
 
u8 flags
 
 service
 
typedef bridge_domain_sw_if
 L2 bridge domain sw interface operational state response. More...
 
u32 sw_if_index
 
u8 shg
 
typedef bd_ip_mac
 Set bridge domain ip to mac entry request. More...
 
vl_api_address_t ip
 
vl_api_mac_address_t mac
 

Enumeration Type Documentation

◆ bd_flags

enum bd_flags

Flags that can be changed on a bridge domain.

Enumerator
BRIDGE_API_FLAG_NONE 
BRIDGE_API_FLAG_LEARN 
BRIDGE_API_FLAG_FWD 
BRIDGE_API_FLAG_FLOOD 
BRIDGE_API_FLAG_UU_FLOOD 
BRIDGE_API_FLAG_ARP_TERM 
BRIDGE_API_FLAG_ARP_UFWD 

Definition at line 326 of file l2.api.

◆ l2_port_type

An enumeration of the type of ports that can be added to a bridge domain.

Enumerator
L2_API_PORT_TYPE_NORMAL 
L2_API_PORT_TYPE_BVI 
L2_API_PORT_TYPE_UU_FWD 

Definition at line 446 of file l2.api.

Variable Documentation

◆ action

u8 action

Definition at line 173 of file l2.api.

◆ api

import vnet interface_types api

Definition at line 19 of file l2.api.

◆ bd_ip_mac

typedef bd_ip_mac
Initial value:
{
unsigned int u32
Definition: types.h:88
u32 bd_id
Definition: gbp.api:175

Set bridge domain ip to mac entry request.

Template Parameters
client_index- opaque cookie to identify the sender
context- sender context, to match reply w/ request
bd_id- the bridge domain to set the flags for
is_add- if non-zero, add the entry, else clear it
ip- ipv4 or ipv6 address
mac- MAC address

Definition at line 488 of file l2.api.

◆ bridge_domain_sw_if

typedef bridge_domain_sw_if
Initial value:
{
u32 context
unsigned int u32
Definition: types.h:88

L2 bridge domain sw interface operational state response.

Template Parameters
bd_id- the bridge domain id
sw_if_index- sw_if_index in the domain
shg- split horizon group for the interface

Definition at line 289 of file l2.api.

◆ flags

u8 flags

Definition at line 174 of file l2.api.

◆ ip

vl_api_address_t ip

Definition at line 490 of file l2.api.

◆ mac

vl_api_mac_address_t mac

Definition at line 491 of file l2.api.

◆ mac_addr

u8 mac_addr[6]

Definition at line 172 of file l2.api.

◆ mac_entry

typedef mac_entry
Initial value:
{
unsigned int u32
Definition: types.h:88
u32 sw_if_index
Definition: l2.api:291

Entry for learned or aged MAC in L2 MAC Events.

Template Parameters
sw_if_index- sw_if_index in the domain
mac_addr- mac_address
action- 0 => newly learned MAC, 1 => MAC deleted by ager 3 => MAC move (sw_if_index changed)
flags- flag bits to provide other info, not yet used

Definition at line 170 of file l2.api.

◆ service

service
Initial value:
{
rpc want_l2_macs_events returns want_l2_macs_events_reply
events l2_macs_event

Definition at line 191 of file l2.api.

◆ shg

u8 shg

Definition at line 292 of file l2.api.

◆ sw_if_index

u32 sw_if_index

Definition at line 291 of file l2.api.

◆ version

option version = "2.2.2"

Definition at line 17 of file l2.api.