![]() |
FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
An L3 ACL list comprises a set of match actions rules to be applied to packets. More...
Public Types | |
typedef std::string | key_t |
The KEY can be used to uniquely identify the ACL. More... | |
typedef std::multiset< l3_rule > | rules_t |
The rule container type. More... | |
Public Member Functions | |
l3_list (const key_t &key) | |
Construct a new object matching the desried state. More... | |
l3_list (const handle_t &hdl, const key_t &key) | |
l3_list (const key_t &key, const rules_t &rules) | |
l3_list (const l3_list &o) | |
Copy Constructor. More... | |
~l3_list () | |
Destructor. More... | |
std::shared_ptr< l3_list > | singular () const |
Return the 'sigular instance' of the ACL that matches this object. More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
void | insert (const l3_rule &rule) |
Insert priority sorted a rule into the list. More... | |
void | remove (const l3_rule &rule) |
Remove a rule from the list. More... | |
const handle_t & | handle () const |
Return the VPP assign handle. More... | |
const key_t & | key () const |
const rules_t & | rules () const |
bool | operator== (const l3_list &l) const |
Comparison operator - for UT. More... | |
Static Public Member Functions | |
static void | dump (std::ostream &os) |
Dump all ACLs into the stream provided. More... | |
static std::shared_ptr< l3_list > | find (const handle_t &handle) |
static std::shared_ptr< l3_list > | find (const key_t &key) |
static void | add (const key_t &key, const HW::item< handle_t > &item) |
static void | remove (const HW::item< handle_t > &item) |
Friends | |
class | VOM::OM |
class | singular_db< key_t, l3_list > |
It's the VOM::singular_db class that calls replay() More... | |
Additional Inherited Members | |
![]() | |
object_base ()=default | |
Constructable by derived classes only. More... | |
virtual | ~object_base ()=default |
Destructor. More... | |
An L3 ACL list comprises a set of match actions rules to be applied to packets.
A list is bound to a given interface.
Definition at line 35 of file acl_l3_list.hpp.
typedef std::string VOM::ACL::l3_list::key_t |
The KEY can be used to uniquely identify the ACL.
(other choices for keys, like the summation of the properties of the rules, are rather too cumbersome to use
Definition at line 43 of file acl_l3_list.hpp.
typedef std::multiset<l3_rule> VOM::ACL::l3_list::rules_t |
The rule container type.
Definition at line 48 of file acl_l3_list.hpp.
VOM::ACL::l3_list::l3_list | ( | const key_t & | key | ) |
Construct a new object matching the desried state.
Definition at line 42 of file acl_l3_list.cpp.
Definition at line 48 of file acl_l3_list.cpp.
Definition at line 54 of file acl_l3_list.cpp.
VOM::ACL::l3_list::l3_list | ( | const l3_list & | o | ) |
Copy Constructor.
Definition at line 61 of file acl_l3_list.cpp.
VOM::ACL::l3_list::~l3_list | ( | ) |
Destructor.
Definition at line 68 of file acl_l3_list.cpp.
|
static |
Dump all ACLs into the stream provided.
Definition at line 84 of file acl_l3_list.cpp.
const handle_t & VOM::ACL::l3_list::handle | ( | ) | const |
Return the VPP assign handle.
Definition at line 120 of file acl_l3_list.cpp.
void VOM::ACL::l3_list::insert | ( | const l3_rule & | rule | ) |
Insert priority sorted a rule into the list.
Definition at line 108 of file acl_l3_list.cpp.
const l3_list::key_t & VOM::ACL::l3_list::key | ( | ) | const |
Comparison operator - for UT.
Definition at line 178 of file acl_l3_list.cpp.
void VOM::ACL::l3_list::remove | ( | const l3_rule & | rule | ) |
Remove a rule from the list.
Definition at line 114 of file acl_l3_list.cpp.
const l3_list::rules_t & VOM::ACL::l3_list::rules | ( | ) | const |
std::shared_ptr< l3_list > VOM::ACL::l3_list::singular | ( | ) | const |
Return the 'sigular instance' of the ACL that matches this object.
Definition at line 75 of file acl_l3_list.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 93 of file acl_l3_list.cpp.
|
friend |
It's the VOM::singular_db class that calls replay()
Definition at line 180 of file acl_l3_list.hpp.
|
friend |
Definition at line 175 of file acl_l3_list.hpp.