|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_GBP_CONTRACT_H__
17 #define __VOM_GBP_CONTRACT_H__
42 typedef std::tuple<scope_t, sclass_t, sclass_t>
key_t;
82 std::shared_ptr<gbp_contract>
singular()
const;
87 static std::shared_ptr<gbp_contract>
find(
const key_t& k);
92 static void dump(std::ostream& os);
122 void handle_replay();
127 void show(std::ostream& os);
148 static std::shared_ptr<gbp_contract> find_or_add(
const gbp_contract& temp);
188 std::shared_ptr<ACL::l3_list> m_acl;
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 ...
bool operator==(const gbp_contract &bdae) const
comparison operator
const key_t key() const
Return the object's key.
The interface to writing objects into VPP OM.
inspect command handler Handler
static void dump(std::ostream &os)
Dump all bridge_domain-doamin into the stream provided.
Class definition for listeners to OM events.
vnet_hw_if_output_node_runtime_t * r
u16 allowed_ethertypes[16]
std::string to_string() const
Convert to string for debugging.
std::set< ethertype_t > ethertype_set_t
A set of allowed ethertypes.
void replay(void)
replay the object to create it in hardware
std::tuple< scope_t, sclass_t, sclass_t > key_t
The key for a contract is the pair of EPG-IDs.
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
~gbp_contract()
Destructor.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
An L3 ACL list comprises a set of match actions rules to be applied to packets.
std::set< gbp_rule > gbp_rules_t
set of gbp rules
gbp_contract(scope_t scope, sclass_t sclass, sclass_t dclass, const ACL::l3_list &acl, const gbp_rules_t &gpb_rules, const ethertype_set_t &allowed_ethertypes)
Construct a GBP contract.
A Database to store the unique 'singular' instances of a single object type.
void event_handler(void *tls_async)
std::shared_ptr< gbp_contract > singular() const
Return the matching 'singular instance'.
static std::shared_ptr< gbp_contract > find(const key_t &k)
Find the instnace of the bridge_domain domain in the OM.
A base class for all object_base in the VPP object_base-Model.
A entry in the ARP termination table of a Bridge Domain.