|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_ACL_ETHERTYPE_H__
17 #define __VOM_ACL_ETHERTYPE_H__
130 std::shared_ptr<acl_ethertype>
singular()
const;
140 static void dump(std::ostream& os);
145 static std::shared_ptr<acl_ethertype>
find(
const key_t&
key);
165 void handle_replay();
170 void show(std::ostream& os);
191 static std::shared_ptr<acl_ethertype> find_or_add(
const acl_ethertype& temp);
218 const std::shared_ptr<interface> m_itf;
234 static
singular_db<interface::key_t, acl_ethertype> m_db;
A HW::item is data that is either to be written to or read from VPP/HW.
const direction_t & getDirection(void) const
get the direction
bool operator==(const acl_ethertype &o) const
comparision operator (for testing)
std::string to_string() const
convert to string format for debug purposes
std::multiset< ethertype_rule_t > ethertype_rules_t
The ethertype container.
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 ...
const key_t & key() const
Return the binding's key.
The interface to writing objects into VPP OM.
inspect command handler Handler
acl_ethertype(const interface &itf, const ethertype_rules_t &le)
Construct a new object matching the desried state.
Class definition for listeners to OM events.
~acl_ethertype()
Destructor.
bool operator==(const ethertype_rule_t &other) const
comparision operator (for testing)
A representation of an interface in VPP.
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::shared_ptr< acl_ethertype > singular() const
Return the 'singular' of the acl ethertype that matches this object.
An ACL ethertype list comprises a set of inbound ether types and out bound ether types to be applied ...
std::string key_t
The KEY can be used to uniquely identify the ACL ethertype.
static void dump(std::ostream &os)
Dump all acl ethertype into the stream provided.
ethertype_rule_t(const ethertype_t ð, const direction_t &dir)
Constructor.
std::string to_string() const
convert to string
static std::shared_ptr< acl_ethertype > find(const key_t &key)
Static function to find the acl_ethertype in the model.
uint16_t getEthertype(void) const
get the ether value
A Database to store the unique 'singular' instances of a single object type.
bool operator<(const ethertype_rule_t &other) const
comparision operator
~ethertype_rule_t()=default
Destructor.
void event_handler(void *tls_async)
A base class for all object_base in the VPP object_base-Model.