16 #ifndef __VOM_BRIDGE_DOMAIN_H__ 17 #define __VOM_BRIDGE_DOMAIN_H__ 136 const key_t&
key()
const;
141 std::shared_ptr<bridge_domain>
singular()
const;
151 static std::shared_ptr<bridge_domain>
find(
const key_t&
key);
156 static void dump(std::ostream& os);
176 void handle_replay();
181 void show(std::ostream& os);
202 static std::shared_ptr<bridge_domain> find_or_add(
const bridge_domain& temp);
Bridge Domain MAC aging mode.
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.
std::shared_ptr< bridge_domain > singular() const
Return the matchin 'singular' instance of the bridge-domain.
static const arp_term_mode_t OFF
static const flood_mode_t OFF
static const learning_mode_t ON
static const arp_term_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.
bool operator==(const enum_base &e) const
Comparison operator.
static const flood_mode_t ON
static const learning_mode_t OFF
A Database to store the unique 'singular' instances of a single object type.
static const mac_age_mode_t ON
const key_t & key() const
Return the bridge domain's key.
static const mac_age_mode_t OFF
Bridge Domain ARP termination mode.
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
const std::string & to_string() const
convert to string format for debug purposes
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 ...
bridge_domain(uint32_t id, const learning_mode_t &lmode=learning_mode_t::ON, const arp_term_mode_t &amode=arp_term_mode_t::ON, const flood_mode_t &fmode=flood_mode_t::ON, const mac_age_mode_t &mmode=mac_age_mode_t::OFF)
Construct a new object matching the desried state.
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.
Bridge Domain Learning mode.
The VPP Object Model (VOM) library.
uint32_t id() const
Return the bridge domain's VPP ID.
static const uint32_t DEFAULT_TABLE
The value of the defaultbridge domain.
~bridge_domain()
Destructor.