FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
A MAC forwarding entry in the bridge-domain/L2-FIB. More...
Public Types | |
typedef std::pair< bridge_domain::key_t, mac_address_t > | key_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_entry > | singular () 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_entry > | find (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... | |
A MAC forwarding entry in the bridge-domain/L2-FIB.
Definition at line 27 of file bridge_domain_entry.hpp.
typedef std::pair<bridge_domain::key_t, mac_address_t> VOM::bridge_domain_entry::key_t |
The key for a bridge_domain.
Definition at line 33 of file bridge_domain_entry.hpp.
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.
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.
VOM::bridge_domain_entry::bridge_domain_entry | ( | const bridge_domain_entry & | r | ) |
Copy Construct.
Definition at line 51 of file bridge_domain_entry.cpp.
VOM::bridge_domain_entry::~bridge_domain_entry | ( | ) |
Destructor.
Definition at line 71 of file bridge_domain_entry.cpp.
|
static |
Dump all bridge_domain-doamin into the stream provided.
Definition at line 140 of file bridge_domain_entry.cpp.
|
static |
Find the instnace of the bridge_domain domain in the OM.
Definition at line 128 of file bridge_domain_entry.cpp.
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.
bool VOM::bridge_domain_entry::operator== | ( | const bridge_domain_entry & | be | ) | const |
comparison operator
Definition at line 66 of file bridge_domain_entry.cpp.
|
virtual |
replay the object to create it in hardware
Implements VOM::object_base.
Definition at line 90 of file bridge_domain_entry.cpp.
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.
|
virtual |
Convert to string for debugging.
Implements VOM::object_base.
Definition at line 99 of file bridge_domain_entry.cpp.
|
friend |
Definition at line 142 of file bridge_domain_entry.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 147 of file bridge_domain_entry.hpp.