FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
A representation of interface span configuration. More...
Data Structures | |
struct | state_t |
The state of the interface - rx/tx or both to be mirrored. More... | |
Public Types | |
typedef std::pair< interface::key_t, interface::key_t > | key_t |
The key type for interface_spans. More... | |
Public Member Functions | |
interface_span (const interface &itf_from, const interface &itf_to, state_t state) | |
Construct a new object matching the desried state. More... | |
interface_span (const interface_span &o) | |
Copy Constructor. More... | |
~interface_span () | |
Destructor. More... | |
std::shared_ptr< interface_span > | singular () const |
Return the 'singular instance' of the interface_span that matches this object. More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
Static Public Member Functions | |
static void | dump (std::ostream &os) |
Dump all interface_spans into the stream provided. More... | |
static std::shared_ptr< interface_span > | find (const interface &i) |
Find a singular instance in the DB for the interface passed. More... | |
Friends | |
class | OM |
class | singular_db< key_t, interface_span > |
e* It's the 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... | |
A representation of interface span configuration.
Definition at line 30 of file interface_span.hpp.
typedef std::pair<interface::key_t, interface::key_t> VOM::interface_span::key_t |
The key type for interface_spans.
Definition at line 106 of file interface_span.hpp.
VOM::interface_span::interface_span | ( | const interface & | itf_from, |
const interface & | itf_to, | ||
interface_span::state_t | state | ||
) |
Construct a new object matching the desried state.
itf_from | - The interface to be mirrored |
itf_to | - The interface where the traffic is mirrored |
Definition at line 28 of file interface_span.cpp.
VOM::interface_span::interface_span | ( | const interface_span & | o | ) |
Copy Constructor.
Definition at line 38 of file interface_span.cpp.
VOM::interface_span::~interface_span | ( | ) |
Destructor.
Definition at line 46 of file interface_span.cpp.
|
static |
Dump all interface_spans into the stream provided.
Definition at line 65 of file interface_span.cpp.
|
static |
Find a singular instance in the DB for the interface passed.
std::shared_ptr< interface_span > VOM::interface_span::singular | ( | ) | const |
Return the 'singular instance' of the interface_span that matches this object.
Definition at line 115 of file interface_span.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 80 of file interface_span.cpp.
|
friend |
Definition at line 163 of file interface_span.hpp.
|
friend |
e* It's the singular_db class that calls replay()
Definition at line 168 of file interface_span.hpp.