FD.io VPP  v21.06-3-gbb25fbf28
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...
 
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_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 32 of file l2_xconnect.hpp.

Member Typedef Documentation

◆ key_t

Key type for an L2 xconnect in the singular DB.

Definition at line 38 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 32 of file l2_xconnect.cpp.

◆ l2_xconnect() [2/2]

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

Copy Constructor.

Definition at line 42 of file l2_xconnect.cpp.

◆ ~l2_xconnect()

VOM::l2_xconnect::~l2_xconnect ( )

Destructor.

Definition at line 105 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 168 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 67 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 53 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 61 of file l2_xconnect.cpp.

◆ set()

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.

+ Here is the call graph for this function:

◆ 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 162 of file l2_xconnect.cpp.

◆ to_string()

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

convert to string format for debug purposes

Implements VOM::object_base.

Definition at line 114 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 140 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 145 of file l2_xconnect.hpp.


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