FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
VOM::tap_interface Class Reference

A tap-interface. More...

+ Inheritance diagram for VOM::tap_interface:
+ Collaboration diagram for VOM::tap_interface:

Public Member Functions

 tap_interface (const std::string &name, admin_state_t state, route::prefix_t prefix)
 Construct a new object matching the desried state. More...
 
 tap_interface (const std::string &name, admin_state_t state, route::prefix_t prefix, const l2_address_t &l2_address)
 
 ~tap_interface ()
 
 tap_interface (const tap_interface &o)
 
std::shared_ptr< tap_interfacesingular () const
 Return the matching 'singular instance' of the TAP interface. More...
 
- Public Member Functions inherited from VOM::interface
 interface (const std::string &name, type_t type, admin_state_t state)
 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)
 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< interfacesingular () const
 Return the matching'singular' of the interface. More...
 
virtual std::string to_string (void) const
 convert to string format for debug purposes More...
 
const handle_thandle () const
 Return VPP's handle to this object. More...
 
const type_ttype () const
 Return the interface type. More...
 
const std::string & name () const
 Return the interface type. More...
 
const key_tkey () const
 Return the interface type. More...
 
const l2_address_tl2_address () const
 Return the L2 Address. 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...
 
virtual bool operator== (const interface &i) const
 Comparison operator - only used for UT. More...
 
void enable_stats (stat_listener &el)
 Enable stats for this interface. More...
 

Friends

class interface
 interface is a friend so it can construct with handles More...
 
class OM
 

Additional Inherited Members

- Public Types inherited from VOM::interface
typedef std::string key_t
 The key for interface's key. More...
 
typedef singular_db< const std::string, interface >::const_iterator const_iterator_t
 The iterator type. More...
 
- Static Public Member Functions inherited from VOM::interface
static const_iterator_t cbegin ()
 
static const_iterator_t cend ()
 
static std::shared_ptr< interfacefind (const handle_t &h)
 The the singular instance of the interface in the DB by handle. More...
 
static std::shared_ptr< interfacefind (const key_t &k)
 The the singular instance of the interface in the DB by key. More...
 
static void dump (std::ostream &os)
 Dump all interfaces into the stream provided. More...
 
- Protected Member Functions inherited from VOM::interface
void set (const handle_t &handle)
 Set the handle of an interface object. More...
 
void release ()
 release/remove an interface form the singular store More...
 
virtual void sweep (void)
 Sweep/reap the object if still stale. More...
 
- Protected Member Functions inherited from VOM::object_base
 object_base ()=default
 Constructable by derived classes only. More...
 
virtual ~object_base ()=default
 Destructor. More...
 
- Static Protected Member Functions inherited from VOM::interface
static void add (const key_t &name, const HW::item< handle_t > &item)
 Add an interface to the DB keyed on handle. More...
 
static void remove (const HW::item< handle_t > &item)
 remove an interface from the DB keyed on handle More...
 
- Protected Attributes inherited from VOM::interface
HW::item< handle_tm_hdl
 The SW interface handle VPP has asigned to the interface. More...
 
- Static Protected Attributes inherited from VOM::interface
static singular_db< key_t, interfacem_db
 A map of all interfaces key against the interface's name. More...
 

Detailed Description

A tap-interface.

e.g. a tap interface

Definition at line 25 of file tap_interface.hpp.

Constructor & Destructor Documentation

VOM::tap_interface::tap_interface ( const std::string &  name,
admin_state_t  state,
route::prefix_t  prefix 
)

Construct a new object matching the desried state.

Definition at line 27 of file tap_interface.cpp.

VOM::tap_interface::tap_interface ( const std::string &  name,
admin_state_t  state,
route::prefix_t  prefix,
const l2_address_t l2_address 
)

Definition at line 36 of file tap_interface.cpp.

VOM::tap_interface::~tap_interface ( )

Definition at line 46 of file tap_interface.cpp.

+ Here is the call graph for this function:

VOM::tap_interface::tap_interface ( const tap_interface o)

Definition at line 52 of file tap_interface.cpp.

+ Here is the call graph for this function:

Member Function Documentation

std::shared_ptr< tap_interface > VOM::tap_interface::singular ( ) const

Return the matching 'singular instance' of the TAP interface.

Definition at line 77 of file tap_interface.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class interface
friend

interface is a friend so it can construct with handles

Definition at line 87 of file tap_interface.hpp.

friend class OM
friend

Definition at line 108 of file tap_interface.hpp.


The documentation for this class was generated from the following files: