FD.io VPP
v18.04-17-g3a0d853
Vector Packet Processing
|
A Clas representing the binding of an L2 interface to a bridge-domain and the properties of that binding. More...
Public Types | |
typedef interface::key_t | key_t |
Key type for an L2 emulation in the singular DB. More... | |
Public Member Functions | |
l2_emulation (const interface &itf) | |
Construct a new object matching the desried state. More... | |
l2_emulation (const l2_emulation &o) | |
Copy Constructor. More... | |
~l2_emulation () | |
Destructor. More... | |
const key_t & | key () const |
Return the binding's key. More... | |
bool | operator== (const l2_emulation &l) const |
Comparison operator - for UT. More... | |
std::shared_ptr< l2_emulation > | singular () const |
Return the 'singular instance' of the L2 config that matches this object. More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
Static Public Member Functions | |
static void | dump (std::ostream &os) |
Dump all l2_emulations into the stream provided. More... | |
static std::shared_ptr< l2_emulation > | find (const key_t &key) |
Static function to find the bridge_domain in the model. More... | |
Friends | |
class | OM |
class | singular_db< key_t, l2_emulation > |
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 Clas representing the binding of an L2 interface to a bridge-domain and the properties of that binding.
Definition at line 32 of file l2_emulation.hpp.
Key type for an L2 emulation in the singular DB.
Definition at line 38 of file l2_emulation.hpp.
VOM::l2_emulation::l2_emulation | ( | const interface & | itf | ) |
Construct a new object matching the desried state.
Definition at line 31 of file l2_emulation.cpp.
VOM::l2_emulation::l2_emulation | ( | const l2_emulation & | o | ) |
Copy Constructor.
Definition at line 37 of file l2_emulation.cpp.
VOM::l2_emulation::~l2_emulation | ( | ) |
Destructor.
Definition at line 82 of file l2_emulation.cpp.
|
static |
Dump all l2_emulations into the stream provided.
Definition at line 124 of file l2_emulation.cpp.
|
static |
Static function to find the bridge_domain in the model.
Definition at line 56 of file l2_emulation.cpp.
const l2_emulation::key_t & VOM::l2_emulation::key | ( | ) | const |
Return the binding's key.
Definition at line 44 of file l2_emulation.cpp.
bool VOM::l2_emulation::operator== | ( | const l2_emulation & | l | ) | const |
Comparison operator - for UT.
Definition at line 50 of file l2_emulation.cpp.
std::shared_ptr< l2_emulation > VOM::l2_emulation::singular | ( | ) | const |
Return the 'singular instance' of the L2 config that matches this object.
Definition at line 118 of file l2_emulation.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 91 of file l2_emulation.cpp.
|
friend |
Definition at line 135 of file l2_emulation.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 140 of file l2_emulation.hpp.