FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
A Class representing the cross connnect of an L2 interface with another l2 interface. More...
Public Types | |
typedef std::pair< interface::key_t, interface::key_t > | key_t |
Key type for an L2 xconnect in the singular DB. More... | |
Public Member Functions | |
l2_xconnect (const interface &east_itf, const interface &west_itf) | |
Construct a new object matching the desried state. More... | |
l2_xconnect (const l2_xconnect &o) | |
Copy Constructor. More... | |
~l2_xconnect () | |
Destructor. More... | |
const key_t | key () const |
Return the xconnect's key. More... | |
bool | operator== (const l2_xconnect &l) const |
Comparison operator - for UT. More... | |
std::shared_ptr< l2_xconnect > | 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_xconnects into the stream provided. More... | |
static std::shared_ptr< l2_xconnect > | 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_xconnect > |
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 Class representing the cross connnect of an L2 interface with another l2 interface.
Definition at line 31 of file l2_xconnect.hpp.
typedef std::pair<interface::key_t, interface::key_t> VOM::l2_xconnect::key_t |
Key type for an L2 xconnect in the singular DB.
Definition at line 37 of file l2_xconnect.hpp.
Construct a new object matching the desried state.
Definition at line 31 of file l2_xconnect.cpp.
VOM::l2_xconnect::l2_xconnect | ( | const l2_xconnect & | o | ) |
Copy Constructor.
Definition at line 39 of file l2_xconnect.cpp.
VOM::l2_xconnect::~l2_xconnect | ( | ) |
Destructor.
Definition at line 95 of file l2_xconnect.cpp.
|
static |
Dump all l2_xconnects into the stream provided.
Definition at line 141 of file l2_xconnect.cpp.
|
static |
Static function to find the bridge_domain in the model.
Definition at line 62 of file l2_xconnect.cpp.
const l2_xconnect::key_t VOM::l2_xconnect::key | ( | ) | const |
Return the xconnect's key.
Definition at line 48 of file l2_xconnect.cpp.
bool VOM::l2_xconnect::operator== | ( | const l2_xconnect & | l | ) | const |
Comparison operator - for UT.
Definition at line 56 of file l2_xconnect.cpp.
std::shared_ptr< l2_xconnect > VOM::l2_xconnect::singular | ( | ) | const |
Return the 'singular instance' of the L2 config that matches this object.
Definition at line 135 of file l2_xconnect.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 104 of file l2_xconnect.cpp.
|
friend |
Definition at line 134 of file l2_xconnect.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 139 of file l2_xconnect.hpp.