|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_BRIDGE_DOMAIN_ENTRY_H__
17 #define __VOM_BRIDGE_DOMAIN_ENTRY_H__
33 typedef std::pair<bridge_domain::key_t, mac_address_t>
key_t;
70 std::shared_ptr<bridge_domain_entry>
singular()
const;
75 static std::shared_ptr<bridge_domain_entry>
find(
const key_t& k);
80 static void dump(std::ostream& os);
110 void handle_replay();
115 void show(std::ostream& os);
136 static std::shared_ptr<bridge_domain_entry> find_or_add(
167 std::shared_ptr<bridge_domain> m_bd;
172 std::shared_ptr<interface> m_tx_itf;
A base class for all object_base in the VPP object_base-Model.
bool operator==(const bridge_domain_entry &be) const
comparison operator
The VPP Object Model (VOM) library.
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.
inspect command handler Handler
Class definition for listeners to OM events.
vnet_hw_if_output_node_runtime_t * r
static std::shared_ptr< bridge_domain_entry > find(const key_t &k)
Find the instnace of the bridge_domain domain in the OM.
std::string to_string() const
Convert to string for debugging.
A representation of an interface in VPP.
const typedef 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_entry > singular() const
Return the matching 'singular instance'.
~bridge_domain_entry()
Destructor.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
std::pair< bridge_domain::key_t, mac_address_t > key_t
The key for a bridge_domain.
static void dump(std::ostream &os)
Dump all bridge_domain-doamin into the stream provided.
const key_t key() const
Return the object's key.
Type def of a Ethernet address.
A Database to store the unique 'singular' instances of a single object type.
void replay(void)
replay the object to create it in hardware
void event_handler(void *tls_async)
bridge_domain_entry(const bridge_domain &bd, const mac_address_t &mac, const interface &tx_itf)
Construct a bridge_domain in the given bridge domain.
A base class for all object_base in the VPP object_base-Model.
A MAC forwarding entry in the bridge-domain/L2-FIB.