16 #ifndef __VOM_GBP_CONTRACT_H__ 17 #define __VOM_GBP_CONTRACT_H__ 36 typedef std::pair<epg_id_t, epg_id_t>
key_t;
58 const key_t
key()
const;
68 std::shared_ptr<gbp_contract>
singular()
const;
73 static std::shared_ptr<gbp_contract>
find(
const key_t& k);
78 static void dump(std::ostream& os);
98 virtual ~event_handler() =
default;
108 void handle_replay();
113 void show(std::ostream& os);
124 static event_handler m_evh;
134 static std::shared_ptr<gbp_contract> find_or_add(
const gbp_contract& temp);
169 std::shared_ptr<ACL::l3_list> m_acl;
const key_t key() const
Return the object's key.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
An ACL list comprises a set of match actions rules to be applied to packets.
uint32_t epg_id_t
EPG IDs are 32 bit integers.
static void dump(std::ostream &os)
Dump all bridge_domain-doamin into the stream provided.
gbp_contract(epg_id_t src_epg_id, epg_id_t dst_epg_id, const ACL::l3_list &acl)
Construct a GBP contract.
std::shared_ptr< gbp_contract > singular() const
Return the matching 'singular instance'.
bool operator==(const gbp_contract &bdae) const
comparison operator
void replay(void)
replay the object to create it in hardware
A Database to store the unique 'singular' instances of a single object type.
A entry in the ARP termination table of a Bridge Domain.
~gbp_contract()
Destructor.
std::pair< epg_id_t, epg_id_t > key_t
The key for a contract is the pari of EPG-IDs.
Class definition for listeners to OM events.
inspect command handler Handler
std::string to_string() const
Convert to string for debugging.
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.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
The VPP Object Model (VOM) library.
static std::shared_ptr< gbp_contract > find(const key_t &k)
Find the instnace of the bridge_domain domain in the OM.