|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_L2_EMULATION_H__
17 #define __VOM_L2_EMULATION_H__
69 std::shared_ptr<l2_emulation>
singular()
const;
79 static void dump(std::ostream& os);
84 static std::shared_ptr<l2_emulation>
find(
const key_t&
key);
104 void handle_replay();
109 void show(std::ostream& os);
130 static std::shared_ptr<l2_emulation> find_or_add(
const l2_emulation& temp);
157 const std::shared_ptr<interface> m_itf;
std::string to_string() const
convert to string format for debug purposes
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
l2_emulation(const interface &itf)
Construct a new object matching the desried state.
Class definition for listeners to OM events.
bool operator==(const l2_emulation &l) const
Comparison operator - for UT.
static void dump(std::ostream &os)
Dump all l2_emulations into the stream provided.
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.
~l2_emulation()
Destructor.
std::shared_ptr< l2_emulation > singular() const
Return the 'singular instance' of the L2 config that matches this object.
interface::key_t key_t
Key type for an L2 emulation in the singular DB.
A Clas representing the binding of an L2 interface to a bridge-domain and the properties of that bind...
const key_t & key() const
Return the binding's key.
static std::shared_ptr< l2_emulation > find(const key_t &key)
Static function to find the bridge_domain in the model.
A Database to store the unique 'singular' instances of a single object type.
std::string key_t
The key for interface's key.
void event_handler(void *tls_async)
A base class for all object_base in the VPP object_base-Model.