|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_ACL_L2_LIST_H__
17 #define __VOM_ACL_L2_LIST_H__
72 std::shared_ptr<l2_list>
singular()
const;
77 static void dump(std::ostream& os);
134 void handle_replay();
139 void show(std::ostream& os);
155 void update(
const l2_list& obj);
165 static std::shared_ptr<l2_list> find_or_add(
const l2_list& temp);
200 static std::map<handle_t, std::weak_ptr<l2_list>> m_hdl_db;
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 ...
std::string to_string() const
convert to string format for debug purposes
An ACL rule is the building block of an ACL.
The interface to writing objects into VPP OM.
l2_list(const key_t &key)
Construct a new object matching the desried state.
inspect command handler Handler
static std::shared_ptr< l2_list > find(const handle_t &handle)
Class definition for listeners to OM events.
std::string key_t
The KEY can be used to uniquely identify the ACL.
static void dump(std::ostream &os)
Dump all ACLs into the stream provided.
bool operator==(const l2_list &l) const
Comparison operator - for UT.
static void add(const key_t &key, const HW::item< handle_t > &item)
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
A type declaration of an interface handle in VPP.
void remove(const l2_rule &rule)
Remove a rule from the list.
const rules_t & rules() const
const handle_t & handle() const
Return the VPP assign handle.
An L2 ACL list comprises a set of match actions rules to be applied to packets.
A Database to store the unique 'singular' instances of a single object type.
std::shared_ptr< l2_list > singular() const
Return the 'sigular instance' of the ACL that matches this object.
const key_t & key() const
void event_handler(void *tls_async)
std::multiset< l2_rule > rules_t
The rule container type.
void insert(const l2_rule &rule)
Insert priority sorted a rule into the list.
A base class for all object_base in the VPP object_base-Model.