16 #ifndef __VOM_L2_BINDING_H__ 17 #define __VOM_L2_BINDING_H__ 93 const key_t&
key()
const;
104 std::shared_ptr<l2_binding>
singular()
const;
114 static void dump(std::ostream& os);
124 static std::shared_ptr<l2_binding>
find(
const key_t&
key);
144 void handle_replay();
149 void show(std::ostream& os);
170 static std::shared_ptr<l2_binding> find_or_add(
const l2_binding& temp);
197 const std::shared_ptr<interface> m_itf;
204 std::shared_ptr<bridge_domain> m_bd;
225 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 const l2_vtr_op_t L2_VTR_PUSH_1
static const l2_vtr_op_t L2_VTR_POP_1
std::shared_ptr< l2_binding > singular() const
Return the 'singular instance' of the L2 config that matches this object.
static const l2_vtr_op_t L2_VTR_DISABLED
static const l2_vtr_op_t L2_VTR_TRANSLATE_1_2
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
bool operator==(const enum_base &e) const
Comparison operator.
static const l2_vtr_op_t L2_VTR_PUSH_2
const key_t & key() const
Return the binding's key.
A Database to store the unique 'singular' instances of a single object type.
static const l2_vtr_op_t L2_VTR_TRANSLATE_2_1
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
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
const std::string & to_string() const
convert to string format for debug purposes
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 ...
The interface to writing objects into VPP OM.
A base class for all object_base in the VPP object_base-Model.
static const l2_vtr_op_t L2_VTR_TRANSLATE_2_2
The VPP Object Model (VOM) library.
l2_binding(const interface &itf, const bridge_domain &bd)
Construct a new object matching the desried state.
l2_vtr_op_t(const l2_vtr_op_t &l)=default
static const l2_vtr_op_t L2_VTR_TRANSLATE_1_1
static void dump(std::ostream &os)
Dump all l2_bindings into the stream provided.
std::string key_t
The key for interface's key.
static const l2_vtr_op_t L2_VTR_POP_2