FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
VOM::l2_xconnect Class Reference

A Class representing the cross connnect of an L2 interface with another l2 interface. More...

+ Inheritance diagram for VOM::l2_xconnect:
+ Collaboration diagram for VOM::l2_xconnect:

Public Types

typedef std::pair< interface::key_t, interface::key_tkey_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_xconnectsingular () 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_xconnectfind (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...
 

Detailed Description

A Class representing the cross connnect of an L2 interface with another l2 interface.

Definition at line 31 of file l2_xconnect.hpp.

Member Typedef Documentation

◆ key_t

Key type for an L2 xconnect in the singular DB.

Definition at line 37 of file l2_xconnect.hpp.

Constructor & Destructor Documentation

◆ l2_xconnect() [1/2]

VOM::l2_xconnect::l2_xconnect ( const interface east_itf,
const interface west_itf 
)

Construct a new object matching the desried state.

Definition at line 31 of file l2_xconnect.cpp.

◆ l2_xconnect() [2/2]

VOM::l2_xconnect::l2_xconnect ( const l2_xconnect o)

Copy Constructor.

Definition at line 39 of file l2_xconnect.cpp.

◆ ~l2_xconnect()

VOM::l2_xconnect::~l2_xconnect ( )

Destructor.

Definition at line 95 of file l2_xconnect.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

void VOM::l2_xconnect::dump ( std::ostream &  os)
static

Dump all l2_xconnects into the stream provided.

Definition at line 141 of file l2_xconnect.cpp.

+ Here is the call graph for this function:

◆ find()

std::shared_ptr< l2_xconnect > VOM::l2_xconnect::find ( const key_t key)
static

Static function to find the bridge_domain in the model.

Definition at line 62 of file l2_xconnect.cpp.

+ Here is the call graph for this function:

◆ key()

const l2_xconnect::key_t VOM::l2_xconnect::key ( ) const

Return the xconnect's key.

Definition at line 48 of file l2_xconnect.cpp.

+ Here is the caller graph for this function:

◆ operator==()

bool VOM::l2_xconnect::operator== ( const l2_xconnect l) const

Comparison operator - for UT.

Definition at line 56 of file l2_xconnect.cpp.

◆ singular()

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.

◆ to_string()

std::string VOM::l2_xconnect::to_string ( void  ) const
virtual

convert to string format for debug purposes

Implements VOM::object_base.

Definition at line 104 of file l2_xconnect.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 134 of file l2_xconnect.hpp.

◆ singular_db< key_t, l2_xconnect >

friend class singular_db< key_t, l2_xconnect >
friend

It's the singular_db class that calls replay()

Definition at line 139 of file l2_xconnect.hpp.


The documentation for this class was generated from the following files: