16 #ifndef __VOM_L2_BINDING_H__ 17 #define __VOM_L2_BINDING_H__ 75 const key_t&
key()
const;
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 Clas representing the binding of an L2 interface to a bridge-domain and the properties of that bind...
A template base class for all enum types.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
static std::shared_ptr< l2_binding > find(const key_t &key)
Static function to find the bridge_domain in the model.
static const l2_port_type_t L2_PORT_TYPE_NORMAL
const key_t & key() const
Return the binding's key.
A Database to store the unique 'singular' instances of a single object type.
interface::key_t key_t
Key type for an L2 binding in the singular DB.
static const l2_port_type_t L2_PORT_TYPE_UU_FWD
std::shared_ptr< l2_binding > singular() const
Return the 'singular instance' of the L2 config that matches this object.
bool operator==(const enum_base &e) const
Comparison operator.
A representation of an interface in VPP.
A base class for all object_base in the VPP object_base-Model.
Class definition for listeners to OM events.
inspect command handler Handler
static const l2_port_type_t L2_PORT_TYPE_BVI
void event_handler(void *tls_async)
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
l2_port_type_t(const l2_port_type_t &l)=default
The interface to writing objects into VPP OM.
A base class for all object_base in the VPP object_base-Model.
The VPP Object Model (VOM) library.
l2_binding(const interface &itf, const bridge_domain &bd)
Construct a new object matching the desried state.
~l2_port_type_t()=default
const std::string & to_string() const
convert to string format for debug purposes
static void dump(std::ostream &os)
Dump all l2_bindings into the stream provided.
std::string key_t
The key for interface's key.