FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
VOM::bridge_domain_entry Class Reference

A MAC forwarding entry in the bridge-domain/L2-FIB. More...

+ Inheritance diagram for VOM::bridge_domain_entry:
+ Collaboration diagram for VOM::bridge_domain_entry:

Public Types

typedef std::pair< bridge_domain::key_t, mac_address_tkey_t
 The key for a bridge_domain. More...
 

Public Member Functions

 bridge_domain_entry (const bridge_domain &bd, const mac_address_t &mac, const interface &tx_itf)
 Construct a bridge_domain in the given bridge domain. More...
 
 bridge_domain_entry (const mac_address_t &mac, const interface &tx_itf)
 Construct a bridge_domain in the default table. More...
 
 bridge_domain_entry (const bridge_domain_entry &r)
 Copy Construct. More...
 
 ~bridge_domain_entry ()
 Destructor. More...
 
const key_t key () const
 Return the object's key. More...
 
bool operator== (const bridge_domain_entry &be) const
 comparison operator More...
 
std::shared_ptr< bridge_domain_entrysingular () const
 Return the matching 'singular instance'. More...
 
void replay (void)
 replay the object to create it in hardware More...
 
std::string to_string () const
 Convert to string for debugging. More...
 

Static Public Member Functions

static std::shared_ptr< bridge_domain_entryfind (const key_t &k)
 Find the instnace of the bridge_domain domain in the OM. More...
 
static void dump (std::ostream &os)
 Dump all bridge_domain-doamin into the stream provided. More...
 

Friends

class OM
 
class singular_db< key_t, bridge_domain_entry >
 It's the singular_db class that calls replay() More...
 

Additional Inherited Members

- Protected Member Functions inherited from VOM::object_base
 object_base ()=default
 Constructable by derived classes only. More...
 
virtual ~object_base ()=default
 Destructor. More...
 

Detailed Description

A MAC forwarding entry in the bridge-domain/L2-FIB.

Definition at line 27 of file bridge_domain_entry.hpp.

Member Typedef Documentation

◆ key_t

The key for a bridge_domain.

Definition at line 33 of file bridge_domain_entry.hpp.

Constructor & Destructor Documentation

◆ bridge_domain_entry() [1/3]

VOM::bridge_domain_entry::bridge_domain_entry ( const bridge_domain bd,
const mac_address_t mac,
const interface tx_itf 
)

Construct a bridge_domain in the given bridge domain.

Definition at line 26 of file bridge_domain_entry.cpp.

◆ bridge_domain_entry() [2/3]

VOM::bridge_domain_entry::bridge_domain_entry ( const mac_address_t mac,
const interface tx_itf 
)

Construct a bridge_domain in the default table.

Definition at line 36 of file bridge_domain_entry.cpp.

+ Here is the call graph for this function:

◆ bridge_domain_entry() [3/3]

VOM::bridge_domain_entry::bridge_domain_entry ( const bridge_domain_entry r)

Copy Construct.

Definition at line 51 of file bridge_domain_entry.cpp.

◆ ~bridge_domain_entry()

VOM::bridge_domain_entry::~bridge_domain_entry ( )

Destructor.

Definition at line 71 of file bridge_domain_entry.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

void VOM::bridge_domain_entry::dump ( std::ostream &  os)
static

Dump all bridge_domain-doamin into the stream provided.

Definition at line 140 of file bridge_domain_entry.cpp.

+ Here is the call graph for this function:

◆ find()

std::shared_ptr< bridge_domain_entry > VOM::bridge_domain_entry::find ( const key_t k)
static

Find the instnace of the bridge_domain domain in the OM.

Definition at line 128 of file bridge_domain_entry.cpp.

◆ key()

const bridge_domain_entry::key_t VOM::bridge_domain_entry::key ( ) const

Return the object's key.

Definition at line 60 of file bridge_domain_entry.cpp.

+ Here is the caller graph for this function:

◆ operator==()

bool VOM::bridge_domain_entry::operator== ( const bridge_domain_entry be) const

comparison operator

Definition at line 66 of file bridge_domain_entry.cpp.

+ Here is the call graph for this function:

◆ replay()

void VOM::bridge_domain_entry::replay ( void  )
virtual

replay the object to create it in hardware

Implements VOM::object_base.

Definition at line 90 of file bridge_domain_entry.cpp.

+ Here is the call graph for this function:

◆ singular()

std::shared_ptr< bridge_domain_entry > VOM::bridge_domain_entry::singular ( ) const

Return the matching 'singular instance'.

Definition at line 134 of file bridge_domain_entry.cpp.

◆ to_string()

std::string VOM::bridge_domain_entry::to_string ( void  ) const
virtual

Convert to string for debugging.

Implements VOM::object_base.

Definition at line 99 of file bridge_domain_entry.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 142 of file bridge_domain_entry.hpp.

◆ singular_db< key_t, bridge_domain_entry >

friend class singular_db< key_t, bridge_domain_entry >
friend

It's the singular_db class that calls replay()

Definition at line 147 of file bridge_domain_entry.hpp.


The documentation for this class was generated from the following files: