FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
A entry in the ARP termination table of a Bridge Domain. More...
Public Types | |
typedef std::set< gbp_rule > | gbp_rules_t |
set of gbp rules More... | |
typedef std::tuple< scope_t, sclass_t, sclass_t > | key_t |
The key for a contract is the pair of EPG-IDs. More... | |
typedef std::set< ethertype_t > | ethertype_set_t |
A set of allowed ethertypes. More... | |
Public Member Functions | |
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. More... | |
gbp_contract (const gbp_contract &r) | |
Copy Construct. More... | |
~gbp_contract () | |
Destructor. More... | |
const key_t | key () const |
Return the object's key. More... | |
bool | operator== (const gbp_contract &bdae) const |
comparison operator More... | |
std::shared_ptr< gbp_contract > | singular () const |
Return the matching 'singular instance'. More... | |
void | replay (void) |
replay the object to create it in hardware More... | |
std::string | to_string () const |
Convert to string for debugging. More... | |
Static Public Member Functions | |
static std::shared_ptr< gbp_contract > | find (const key_t &k) |
Find the instnace of the bridge_domain domain in the OM. More... | |
static void | dump (std::ostream &os) |
Dump all bridge_domain-doamin into the stream provided. More... | |
Friends | |
class | OM |
class | singular_db< key_t, gbp_contract > |
It's the singular_db class that calls replay() More... | |
Additional Inherited Members | |
Protected Member Functions inherited from VOM::object_base | |
object_base ()=default | |
Constructable by derived classes only. More... | |
virtual | ~object_base ()=default |
Destructor. More... | |
A entry in the ARP termination table of a Bridge Domain.
Definition at line 31 of file gbp_contract.hpp.
typedef std::set<ethertype_t> VOM::gbp_contract::ethertype_set_t |
A set of allowed ethertypes.
Definition at line 47 of file gbp_contract.hpp.
typedef std::set<gbp_rule> VOM::gbp_contract::gbp_rules_t |
set of gbp rules
Definition at line 37 of file gbp_contract.hpp.
typedef std::tuple<scope_t, sclass_t, sclass_t> VOM::gbp_contract::key_t |
The key for a contract is the pair of EPG-IDs.
Definition at line 42 of file gbp_contract.hpp.
VOM::gbp_contract::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.
Definition at line 27 of file gbp_contract.cpp.
VOM::gbp_contract::gbp_contract | ( | const gbp_contract & | r | ) |
Copy Construct.
Definition at line 43 of file gbp_contract.cpp.
VOM::gbp_contract::~gbp_contract | ( | ) |
Destructor.
Definition at line 54 of file gbp_contract.cpp.
|
static |
Dump all bridge_domain-doamin into the stream provided.
Definition at line 147 of file gbp_contract.cpp.
|
static |
Find the instnace of the bridge_domain domain in the OM.
Definition at line 135 of file gbp_contract.cpp.
const gbp_contract::key_t VOM::gbp_contract::key | ( | ) | const |
Return the object's key.
Definition at line 63 of file gbp_contract.cpp.
bool VOM::gbp_contract::operator== | ( | const gbp_contract & | bdae | ) | const |
comparison operator
Definition at line 69 of file gbp_contract.cpp.
|
virtual |
replay the object to create it in hardware
Implements VOM::object_base.
Definition at line 85 of file gbp_contract.cpp.
std::shared_ptr< gbp_contract > VOM::gbp_contract::singular | ( | ) | const |
Return the matching 'singular instance'.
Definition at line 141 of file gbp_contract.cpp.
|
virtual |
Convert to string for debugging.
Implements VOM::object_base.
Definition at line 95 of file gbp_contract.cpp.
|
friend |
Definition at line 153 of file gbp_contract.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 158 of file gbp_contract.hpp.