16 #ifndef __VOM_BRIDGE_DOMAIN_H__ 17 #define __VOM_BRIDGE_DOMAIN_H__ 168 const key_t&
key()
const;
173 std::shared_ptr<bridge_domain>
singular()
const;
183 static std::shared_ptr<bridge_domain>
find(
const key_t&
key);
188 static void dump(std::ostream& os);
208 void handle_replay();
213 void show(std::ostream& os);
234 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 const uu_flood_mode_t OFF
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
Bridge Domain Unknown Unicast Flood mode.
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 arp_ufwd_mode_t &aumode=arp_ufwd_mode_t::OFF, const flood_mode_t &fmode=flood_mode_t::ON, const uu_flood_mode_t &uufmode=uu_flood_mode_t::ON, const mac_age_mode_t &mmode=mac_age_mode_t::OFF)
Construct a new object matching the desried state.
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 ...
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 ARP Unicast Forward mode.
static const arp_ufwd_mode_t OFF
Bridge Domain flood mode.
The VPP Object Model (VOM) library.
uint32_t id() const
Return the bridge domain's VPP ID.
static const uu_flood_mode_t ON
static const uint32_t DEFAULT_TABLE
The value of the defaultbridge domain.
static const arp_ufwd_mode_t ON
~bridge_domain()
Destructor.