16 #ifndef __VOM_GBP_SUBNET_H__ 17 #define __VOM_GBP_SUBNET_H__ 34 typedef std::pair<route_domain::key_t, route::prefix_t>
key_t;
62 const key_t
key()
const;
72 std::shared_ptr<gbp_subnet>
singular()
const;
77 static std::shared_ptr<gbp_subnet>
find(
const key_t& k);
82 static void dump(std::ostream& os);
101 const static type_t INTERNAL;
106 const static type_t EXTERNAL;
109 type_t(
int v,
const std::string s);
129 void handle_replay();
134 void show(std::ostream& os);
155 static std::shared_ptr<gbp_subnet> find_or_add(
const gbp_subnet& temp);
180 const std::shared_ptr<route_domain> m_rd;
195 std::shared_ptr<gbp_recirc> m_recirc;
200 std::shared_ptr<gbp_endpoint_group> m_epg;
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< gbp_subnet > singular() const
Return the matching 'singular instance'.
std::string to_string() const
Convert to string for debugging.
void replay(void)
replay the object to create it in hardware
static void dump(std::ostream &os)
Dump all bridge_domain-doamin into the stream provided.
static std::shared_ptr< gbp_subnet > find(const key_t &k)
Find the instnace of the bridge_domain domain in the OM.
A Database to store the unique 'singular' instances of a single object type.
A recirculation interface for GBP use pre/post NAT.
bool operator==(const gbp_subnet &bdae) const
comparison operator
gbp_subnet(const route_domain &rd, const route::prefix_t &prefix)
Construct an internal GBP subnet.
const key_t key() const
Return the object's key.
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.
A base class for all object_base in the VPP object_base-Model.
The VPP Object Model (VOM) library.
std::pair< route_domain::key_t, route::prefix_t > key_t
The key for a GBP subnet; table and prefix.