16 #ifndef __VOM_BRIDGE_DOMAIN_H__ 17 #define __VOM_BRIDGE_DOMAIN_H__ 88 const key_t&
key()
const;
93 std::shared_ptr<bridge_domain>
singular()
const;
103 static std::shared_ptr<bridge_domain>
find(
const key_t&
key);
108 static void dump(std::ostream& os);
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<bridge_domain> find_or_add(
const bridge_domain& temp);
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 learning_mode_t ON
static std::shared_ptr< bridge_domain > find(const key_t &key)
Static function to find the bridge_domain in the model.
static void dump(std::ostream &os)
Dump all bridge-doamin into the stream provided.
static const learning_mode_t OFF
A Database to store the unique 'singular' instances of a single object type.
uint32_t id() const
Return the bridge domain's VPP ID.
bool operator==(const enum_base &e) const
Comparison operator.
const key_t & key() const
Return the bridge domain's key.
Bridge Domain Learning mode.
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.
uint32_t key_t
Key Type for Bridge Domains in the sigular DB.
A base class for all object_base in the VPP object_base-Model.
std::shared_ptr< bridge_domain > singular() const
Return the matchin 'singular' instance of the bridge-domain.
The VPP Object Model (VOM) library.
const std::string & to_string() const
convert to string format for debug purposes
bridge_domain(uint32_t id, const learning_mode_t &lmode=learning_mode_t::ON)
Construct a new object matching the desried state.
static const uint32_t DEFAULT_TABLE
The value of the defaultbridge domain.
~bridge_domain()
Destructor.