|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_L2_BINDING_H__
17 #define __VOM_L2_BINDING_H__
86 std::shared_ptr<l2_binding>
singular()
const;
96 static void dump(std::ostream& os);
106 static std::shared_ptr<l2_binding>
find(
const key_t&
key);
126 void handle_replay();
131 void show(std::ostream& os);
152 static std::shared_ptr<l2_binding> find_or_add(
const l2_binding& temp);
179 const std::shared_ptr<interface> m_itf;
186 std::shared_ptr<bridge_domain> m_bd;
207 uint16_t m_vtr_op_tag;
A base class for all object_base in the VPP object_base-Model.
l2_port_type_t(const l2_port_type_t &l)=default
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.
const key_t & key() const
Return the binding's key.
interface::key_t key_t
Key type for an L2 binding in the singular DB.
A template base class for all enum types.
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_port_type_t()=default
bool operator==(const l2_binding &l) const
Comparison operator - for UT.
static void dump(std::ostream &os)
Dump all l2_bindings into the stream provided.
const static l2_port_type_t L2_PORT_TYPE_NORMAL
l2_binding(const interface &itf, const bridge_domain &bd)
Construct a new object matching the desried state.
std::string to_string() const
convert to string format for debug purposes
A Database to store the unique 'singular' instances of a single object type.
static std::shared_ptr< l2_binding > find(const key_t &key)
Static function to find the bridge_domain in the model.
const static l2_port_type_t L2_PORT_TYPE_BVI
std::string key_t
The key for interface's key.
void event_handler(void *tls_async)
const static l2_port_type_t L2_PORT_TYPE_UU_FWD
A base class for all object_base in the VPP object_base-Model.
std::shared_ptr< l2_binding > singular() const
Return the 'singular instance' of the L2 config that matches this object.
void set(const l2_vtr::option_t &op, uint16_t tag)
Set the VTR operation on the binding/interface.
A Clas representing the binding of an L2 interface to a bridge-domain and the properties of that bind...