|
| pipe (uint32_t instance, admin_state_t state) |
| Construct a new object matching the desried state. More...
|
|
| ~pipe () |
| Destructor. More...
|
|
| pipe (const pipe &o) |
| Copy Constructor. More...
|
|
bool | operator== (const pipe &s) const |
| comparison operator - for UT More...
|
|
std::shared_ptr< pipe > | singular () const |
| Return the matching 'singular instance' of the sub-interface. More...
|
|
std::shared_ptr< interface > | east () |
| The interface that is the east end of the pipe. More...
|
|
std::shared_ptr< interface > | west () |
| The interface that is the west end of the pipe. More...
|
|
virtual std::string | to_string (void) const |
| convert to string format for debug purposes More...
|
|
void | set_ends (const handle_pair_t &p) |
|
| interface (const std::string &name, type_t type, admin_state_t state, const std::string &tag="") |
| Construct a new object matching the desried state. More...
|
|
| interface (const std::string &name, type_t type, admin_state_t state, const route_domain &rd, const std::string &tag="") |
| Construct a new object matching the desried state mapped to a specific route_domain. More...
|
|
virtual | ~interface () |
| Destructor. More...
|
|
| interface (const interface &o) |
| Copy Constructor. More...
|
|
std::shared_ptr< interface > | singular () const |
| Return the matching'singular' of the interface. More...
|
|
const handle_t & | handle () const |
| Return VPP's handle to this object. More...
|
|
const type_t & | type () const |
| Return the interface type. More...
|
|
const std::string & | name () const |
| Return the interface type. More...
|
|
const key_t & | key () const |
| Return the interface type. More...
|
|
const l2_address_t & | l2_address () const |
| Return the L2 Address. More...
|
|
const admin_state_t & | admin_state () const |
| Return the admin state. More...
|
|
void | set (const admin_state_t &state) |
| Set the admin state of the interface. More...
|
|
void | set (const l2_address_t &addr) |
| Set the L2 Address. More...
|
|
void | set (const oper_state_t &state) |
| Set the operational state of the interface, as reported by VPP. More...
|
|
void | set (const std::string &tag) |
| Set the tag to the interface. More...
|
|
const stats_t & | get_stats (void) const |
| Get the interface stats. More...
|
|
virtual bool | operator== (const interface &i) const |
| Comparison operator - only used for UT. More...
|
|
void | enable_stats (stat_listener *el, const stats_type_t &st=stats_type_t::NORMAL) |
| Enable stats for this interface. More...
|
|
void | disable_stats () |
| Disable stats for this interface. More...
|
|
A Pipe interface.
A pipe is composed for 3 'interfaces'. 1) the 'parent' interface - this is used as the 'key' for the pipe 2) the two 'ends' of the pipe - these are used to RX/TX packets form/to. The ends are retreivable using the east()/west() functions. The east and west end are exactly equivalent, they are merely named differently for logical purposes.
Definition at line 31 of file pipe.hpp.