|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_INTERFACE_SPAN_H__
17 #define __VOM_INTERFACE_SPAN_H__
91 std::shared_ptr<interface_span>
singular()
const;
101 static void dump(std::ostream& os);
106 typedef std::pair<interface::key_t, interface::key_t>
key_t;
131 void handle_replay();
136 void show(std::ostream& os);
157 static std::shared_ptr<interface_span> find_or_add(
183 const std::shared_ptr<interface> m_itf_from;
188 const std::shared_ptr<interface> m_itf_to;
const static state_t RX_ENABLED
RX enable state.
interface_span(const interface &itf_from, const interface &itf_to, state_t state)
Construct a new object matching the desried state.
static state_t from_int(uint8_t val)
Convert VPP's numerical value to enum type.
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 ...
The interface to writing objects into VPP OM.
const static state_t TX_ENABLED
TX enable state.
inspect command handler Handler
vl_api_dhcp_client_state_t state
Class definition for listeners to OM events.
A representation of interface span configuration.
The state of the interface - rx/tx or both to be mirrored.
const static state_t DISABLED
DISABLED state.
std::shared_ptr< interface_span > singular() const
Return the 'singular instance' of the interface_span that matches this object.
A template base class for all enum types.
std::string to_string() const
convert to string format for debug purposes
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.
static std::shared_ptr< interface_span > find(const interface &i)
Find a singular instance in the DB for the interface passed.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
std::pair< interface::key_t, interface::key_t > key_t
The key type for interface_spans.
static void dump(std::ostream &os)
Dump all interface_spans into the stream provided.
A Database to store the unique 'singular' instances of a single object type.
~interface_span()
Destructor.
void event_handler(void *tls_async)
A base class for all object_base in the VPP object_base-Model.
const static state_t TX_RX_ENABLED
TX and RX enable state.