FD.io VPP
v18.01-8-g0eacf49
Vector Packet Processing
|
A base class for all object_base in the VPP object_base-Model. More...
Data Structures | |
struct | learning_mode_t |
Bridge Domain Learning mode. More... | |
Public Types | |
typedef uint32_t | key_t |
Key Type for Bridge Domains in the sigular DB. More... | |
Public Member Functions | |
bridge_domain (uint32_t id, const learning_mode_t &lmode=learning_mode_t::ON) | |
Construct a new object matching the desried state. More... | |
bridge_domain (const bridge_domain &o) | |
Copy Constructor. More... | |
~bridge_domain () | |
Destructor. More... | |
bool | operator== (const bridge_domain &b) const |
Comparison operator - for UT. More... | |
uint32_t | id () const |
Return the bridge domain's VPP ID. More... | |
const key_t & | key () const |
Return the bridge domain's key. More... | |
std::shared_ptr< bridge_domain > | singular () const |
Return the matchin 'singular' instance of the bridge-domain. More... | |
std::string | to_string (void) const |
convert to string format for debug purposes More... | |
Static Public Member Functions | |
static std::shared_ptr< bridge_domain > | find (const key_t &key) |
Static function to find the bridge_domain in the model. More... | |
static void | dump (std::ostream &os) |
Dump all bridge-doamin into the stream provided. More... | |
Static Public Attributes | |
static const uint32_t | DEFAULT_TABLE = 0 |
The value of the defaultbridge domain. More... | |
Friends | |
class | OM |
class | singular_db< key_t, bridge_domain > |
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 base class for all object_base in the VPP object_base-Model.
provides the abstract interface.
Definition at line 31 of file bridge_domain.hpp.
typedef uint32_t VOM::bridge_domain::key_t |
Key Type for Bridge Domains in the sigular DB.
Definition at line 37 of file bridge_domain.hpp.
VOM::bridge_domain::bridge_domain | ( | uint32_t | id, |
const learning_mode_t & | lmode = learning_mode_t::ON |
||
) |
Construct a new object matching the desried state.
Definition at line 43 of file bridge_domain.cpp.
VOM::bridge_domain::bridge_domain | ( | const bridge_domain & | o | ) |
Copy Constructor.
Definition at line 49 of file bridge_domain.cpp.
VOM::bridge_domain::~bridge_domain | ( | ) |
Destructor.
Definition at line 90 of file bridge_domain.cpp.
|
static |
Dump all bridge-doamin into the stream provided.
Definition at line 138 of file bridge_domain.cpp.
|
static |
Static function to find the bridge_domain in the model.
Definition at line 109 of file bridge_domain.cpp.
uint32_t VOM::bridge_domain::id | ( | ) | const |
Return the bridge domain's VPP ID.
Definition at line 62 of file bridge_domain.cpp.
const bridge_domain::key_t & VOM::bridge_domain::key | ( | ) | const |
Return the bridge domain's key.
Definition at line 56 of file bridge_domain.cpp.
bool VOM::bridge_domain::operator== | ( | const bridge_domain & | b | ) | const |
Comparison operator - for UT.
Definition at line 68 of file bridge_domain.cpp.
std::shared_ptr< bridge_domain > VOM::bridge_domain::singular | ( | ) | const |
Return the matchin 'singular' instance of the bridge-domain.
Definition at line 132 of file bridge_domain.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 99 of file bridge_domain.cpp.
|
friend |
Definition at line 159 of file bridge_domain.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 164 of file bridge_domain.hpp.
|
static |
The value of the defaultbridge domain.
Definition at line 57 of file bridge_domain.hpp.