|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_L2_XCONNECT_H__
17 #define __VOM_L2_XCONNECT_H__
38 typedef std::pair<interface::key_t, interface::key_t>
key_t;
69 std::shared_ptr<l2_xconnect>
singular()
const;
79 static void dump(std::ostream& os);
89 static std::shared_ptr<l2_xconnect>
find(
const key_t&
key);
109 void handle_replay();
114 void show(std::ostream& os);
135 static std::shared_ptr<l2_xconnect> find_or_add(
const l2_xconnect& temp);
162 const std::shared_ptr<interface> m_east_itf;
169 const std::shared_ptr<interface> m_west_itf;
191 uint16_t m_vtr_op_tag;
void set(const l2_vtr::option_t &op, uint16_t tag)
Set the VTR operation on the binding/interface.
l2_xconnect(const interface &east_itf, const interface &west_itf)
Construct a new object matching the desried state.
The VPP Object Model (VOM) library.
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
The interface to writing objects into VPP OM.
inspect command handler Handler
Class definition for listeners to OM events.
~l2_xconnect()
Destructor.
A representation of an interface in VPP.
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::shared_ptr< l2_xconnect > singular() const
Return the 'singular instance' of the L2 config that matches this object.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
static void dump(std::ostream &os)
Dump all l2_xconnects into the stream provided.
A Class representing the cross connnect of an L2 interface with another l2 interface.
const key_t key() const
Return the xconnect's key.
std::pair< interface::key_t, interface::key_t > key_t
Key type for an L2 xconnect in the singular DB.
std::string to_string() const
convert to string format for debug purposes
bool operator==(const l2_xconnect &l) const
Comparison operator - for UT.
A Database to store the unique 'singular' instances of a single object type.
void event_handler(void *tls_async)
A base class for all object_base in the VPP object_base-Model.
static std::shared_ptr< l2_xconnect > find(const key_t &key)
Static function to find the bridge_domain in the model.