16 #ifndef __VOM_GBP_ENDPOINT_GROUP_H__ 17 #define __VOM_GBP_ENDPOINT_GROUP_H__ 65 const key_t
key()
const;
75 std::shared_ptr<gbp_endpoint_group>
singular()
const;
80 static std::shared_ptr<gbp_endpoint_group>
find(
const key_t& k);
85 static void dump(std::ostream& os);
120 void handle_replay();
125 void show(std::ostream& os);
146 static std::shared_ptr<gbp_endpoint_group> find_or_add(
177 std::shared_ptr<interface> m_itf;
182 std::shared_ptr<route_domain> m_rd;
187 std::shared_ptr<bridge_domain> m_bd;
gbp_endpoint_group(epg_id_t epg_id, const interface &itf, const route_domain &rd, const bridge_domain &bd)
Construct a GBP endpoint_group.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
uint32_t epg_id_t
EPG IDs are 32 bit integers.
std::string to_string() const
Convert to string for debugging.
const key_t key() const
Return the object's key.
epg_id_t id() const
Get the ID of the EPG.
bool operator==(const gbp_endpoint_group &bdae) const
comparison operator
std::shared_ptr< gbp_endpoint_group > singular() const
Return the matching 'singular instance'.
A Database to store the unique 'singular' instances of a single object type.
void replay(void)
replay the object to create it in hardware
A representation of an interface in VPP.
A base class for all object_base in the VPP object_base-Model.
A entry in the ARP termination table of a Bridge Domain.
Class definition for listeners to OM events.
inspect command handler Handler
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.
static void dump(std::ostream &os)
Dump all bridge_domain-doamin into the stream provided.
epg_id_t key_t
The key for a GBP endpoint group is its ID.
A base class for all object_base in the VPP object_base-Model.
The VPP Object Model (VOM) library.
~gbp_endpoint_group()
Destructor.
static std::shared_ptr< gbp_endpoint_group > find(const key_t &k)
Find the instnace of the bridge_domain domain in the OM.