16 #ifndef __VOM_GBP_ENDPOINT_GROUP_H__ 17 #define __VOM_GBP_ENDPOINT_GROUP_H__ 68 const key_t
key()
const;
78 std::shared_ptr<gbp_endpoint_group>
singular()
const;
83 static std::shared_ptr<gbp_endpoint_group>
find(
const key_t& k);
88 static void dump(std::ostream& os);
126 void handle_replay();
131 void show(std::ostream& os);
152 static std::shared_ptr<gbp_endpoint_group> find_or_add(
183 std::shared_ptr<interface> m_itf;
188 std::shared_ptr<gbp_route_domain> m_rd;
193 std::shared_ptr<gbp_bridge_domain> m_bd;
const key_t key() const
Return the object's key.
const std::shared_ptr< gbp_bridge_domain > get_bridge_domain()
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.
const std::shared_ptr< gbp_route_domain > get_route_domain()
A entry in the ARP termination table of a Bridge Domain.
gbp_endpoint_group(epg_id_t epg_id, const interface &itf, const gbp_route_domain &rd, const gbp_bridge_domain &bd)
Construct a GBP endpoint_group.
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 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.
A entry in the ARP termination table of a Route Domain.
The VPP Object Model (VOM) library.
~gbp_endpoint_group()
Destructor.
bool operator==(const gbp_endpoint_group &bdae) const
comparison operator
epg_id_t id() const
Get the ID of the EPG.
static std::shared_ptr< gbp_endpoint_group > find(const key_t &k)
Find the instnace of the bridge_domain domain in the OM.
std::shared_ptr< gbp_endpoint_group > singular() const
Return the matching 'singular instance'.
std::string to_string() const
Convert to string for debugging.