16 #ifndef __VOM_L2_BINDING_H__ 17 #define __VOM_L2_BINDING_H__ 77 const key_t&
key()
const;
88 std::shared_ptr<l2_binding>
singular()
const;
98 static void dump(std::ostream& os);
108 static std::shared_ptr<l2_binding>
find(
const key_t&
key);
118 virtual ~event_handler() =
default;
128 void handle_replay();
133 void show(std::ostream& os);
144 static event_handler m_evh;
154 static std::shared_ptr<l2_binding> find_or_add(
const l2_binding& temp);
181 const std::shared_ptr<interface> m_itf;
188 std::shared_ptr<bridge_domain> m_bd;
204 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
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_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.
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
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
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.
static const l2_vtr_op_t L2_VTR_POP_2