FD.io VPP
v20.05.1-6-gf53edbc3b
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... | |
void | set (const l2_vtr::option_t &op, uint16_t tag) |
Set the VTR operation on the binding/interface. 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 32 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 38 of file l2_xconnect.hpp.
Construct a new object matching the desried state.
Definition at line 32 of file l2_xconnect.cpp.
VOM::l2_xconnect::l2_xconnect | ( | const l2_xconnect & | o | ) |
Copy Constructor.
Definition at line 42 of file l2_xconnect.cpp.
VOM::l2_xconnect::~l2_xconnect | ( | ) |
Destructor.
Definition at line 105 of file l2_xconnect.cpp.
|
static |
Dump all l2_xconnects into the stream provided.
Definition at line 168 of file l2_xconnect.cpp.
|
static |
Static function to find the bridge_domain in the model.
Definition at line 67 of file l2_xconnect.cpp.
const l2_xconnect::key_t VOM::l2_xconnect::key | ( | ) | const |
Return the xconnect's key.
Definition at line 53 of file l2_xconnect.cpp.
bool VOM::l2_xconnect::operator== | ( | const l2_xconnect & | l | ) | const |
Comparison operator - for UT.
Definition at line 61 of file l2_xconnect.cpp.
void VOM::l2_xconnect::set | ( | const l2_vtr::option_t & | op, |
uint16_t | tag | ||
) |
Set the VTR operation on the binding/interface.
Definition at line 125 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 162 of file l2_xconnect.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 114 of file l2_xconnect.cpp.
|
friend |
Definition at line 140 of file l2_xconnect.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 145 of file l2_xconnect.hpp.