FD.io VPP  v20.05-21-gb1500e9ff
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 receiving 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  mac_event_action { MAC_EVENT_ACTION_API_ADD = 0, MAC_EVENT_ACTION_API_DELETE = 1, MAC_EVENT_ACTION_API_MOVE = 2 }
 
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 = "3.0.0"
 
import vnet ip ip_types api
 
typedef mac_entry
 Entry for learned or aged MAC in L2 MAC Events. More...
 
vl_api_mac_address_t mac_addr
 
vl_api_mac_event_action_t action
 
u8 flags
 
 service
 
typedef bridge_domain_sw_if
 L2 bridge domain sw interface operational state response. More...
 
vl_api_interface_index_t 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 337 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 457 of file l2.api.

◆ mac_event_action

Enumerator
MAC_EVENT_ACTION_API_ADD 
MAC_EVENT_ACTION_API_DELETE 
MAC_EVENT_ACTION_API_MOVE 

Definition at line 163 of file l2.api.

Variable Documentation

◆ action

vl_api_mac_event_action_t action

Definition at line 181 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 499 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 299 of file l2.api.

◆ flags

u8 flags

Definition at line 182 of file l2.api.

◆ ip

vl_api_address_t ip

Definition at line 501 of file l2.api.

◆ mac

vl_api_mac_address_t mac

Definition at line 502 of file l2.api.

◆ mac_addr

vl_api_mac_address_t mac_addr

Definition at line 180 of file l2.api.

◆ mac_entry

typedef mac_entry
Initial value:
{
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:301

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 2 => MAC move (sw_if_index changed)
flags- flag bits to provide other info, not yet used

Definition at line 178 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 199 of file l2.api.

◆ shg

u8 shg

Definition at line 303 of file l2.api.

◆ sw_if_index

vl_api_interface_index_t sw_if_index

Definition at line 301 of file l2.api.

◆ version

option version = "3.0.0"

Definition at line 17 of file l2.api.