FD.io VPP
v18.01.2-1-g9b554f3
Vector Packet Processing
|
An 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< RULE > | rules_t |
The rule container type. More... | |
Public Member Functions | |
list (const key_t &key) | |
Construct a new object matching the desried state. More... | |
list (const handle_t &hdl, const key_t &key) | |
list (const key_t &key, const rules_t &rules) | |
list (const list &o) | |
Copy Constructor. More... | |
~list () | |
Destructor. More... | |
std::shared_ptr< 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 RULE &rule) |
Insert priority sorted a rule into the list. More... | |
void | remove (const 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 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< list > | find (const handle_t &handle) |
static std::shared_ptr< list > | find (const key_t &key) |
static void | add (const handle_t &handle, std::shared_ptr< list > sp) |
static void | remove (const handle_t &handle) |
Friends | |
class | VOM::OM |
class | singular_db< key_t, list > |
It's the VOM::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... | |
An 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 37 of file acl_list.hpp.
typedef std::string VOM::ACL::list< RULE >::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 45 of file acl_list.hpp.
typedef std::multiset<RULE> VOM::ACL::list< RULE >::rules_t |
The rule container type.
Definition at line 50 of file acl_list.hpp.
|
inline |
Construct a new object matching the desried state.
Definition at line 55 of file acl_list.hpp.
|
inline |
Definition at line 60 of file acl_list.hpp.
|
inline |
Definition at line 66 of file acl_list.hpp.
|
inline |
Copy Constructor.
Definition at line 76 of file acl_list.hpp.
|
inline |
Destructor.
Definition at line 86 of file acl_list.hpp.
|
inlinestatic |
Definition at line 144 of file acl_list.hpp.
|
inlinestatic |
Dump all ACLs into the stream provided.
Definition at line 100 of file acl_list.hpp.
|
inlinestatic |
|
inlinestatic |
Definition at line 139 of file acl_list.hpp.
|
inline |
Return the VPP assign handle.
Definition at line 132 of file acl_list.hpp.
|
inline |
Insert priority sorted a rule into the list.
Definition at line 122 of file acl_list.hpp.
|
inline |
|
inline |
Comparison operator - for UT.
Definition at line 158 of file acl_list.hpp.
|
inline |
Remove a rule from the list.
Definition at line 127 of file acl_list.hpp.
|
inlinestatic |
|
inline |
|
inline |
Return the 'sigular instance' of the ACL that matches this object.
Definition at line 95 of file acl_list.hpp.
|
inlinevirtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 105 of file acl_list.hpp.
|
friend |
It's the VOM::singular_db class that calls replay()
Definition at line 229 of file acl_list.hpp.
|
friend |
Definition at line 224 of file acl_list.hpp.