FD.io VPP  v20.05-21-gb1500e9ff
Vector Packet Processing
VOM::ip_punt_redirect Class Reference

A representation of IP punt_redirect configuration on an interface. More...

+ Inheritance diagram for VOM::ip_punt_redirect:
+ Collaboration diagram for VOM::ip_punt_redirect:

Public Types

typedef interface::key_t key_t
 The key type for ip_punt_redirects. More...
 

Public Member Functions

 ip_punt_redirect (const interface &rx_itf, const interface &tx_itf, const boost::asio::ip::address &addr)
 Construct a new object matching the desried state. More...
 
 ip_punt_redirect (const interface &tx_itf, const boost::asio::ip::address &addr)
 Construct a new object matching the desried state. More...
 
 ip_punt_redirect (const ip_punt_redirect &o)
 Copy Constructor. More...
 
 ~ip_punt_redirect ()
 Destructor. More...
 
std::shared_ptr< ip_punt_redirectsingular () const
 Return the 'singular instance' of the ip_punt_redirect that matches this object. More...
 
std::string to_string () const
 convert to string format for debug purposes More...
 
const key_t key () const
 return the object's key More...
 

Static Public Member Functions

static void dump (std::ostream &os)
 Dump all ip_punt_redirects into the stream provided. More...
 
static std::shared_ptr< ip_punt_redirectfind (const interface &i)
 Find an singular instance in the DB for the interface passed. More...
 

Friends

class OM
 
class singular_db< key_t, ip_punt_redirect >
 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...
 

Detailed Description

A representation of IP punt_redirect configuration on an interface.

Definition at line 30 of file ip_punt_redirect.hpp.

Member Typedef Documentation

◆ key_t

The key type for ip_punt_redirects.

Definition at line 82 of file ip_punt_redirect.hpp.

Constructor & Destructor Documentation

◆ ip_punt_redirect() [1/3]

VOM::ip_punt_redirect::ip_punt_redirect ( const interface rx_itf,
const interface tx_itf,
const boost::asio::ip::address addr 
)

Construct a new object matching the desried state.

Parameters
rx_itf- The interface from where the punt traffic should come.
tx_itf- The interface to which traffic should be redirected.
addr- The next hop ip address to redirect the traffic.

Definition at line 29 of file ip_punt_redirect.cpp.

◆ ip_punt_redirect() [2/3]

VOM::ip_punt_redirect::ip_punt_redirect ( const interface tx_itf,
const boost::asio::ip::address addr 
)

Construct a new object matching the desried state.

Parameters
tx_itf- The interface to which traffic should be redirected.
addr- The next hop ip address to redirect the traffic.

Definition at line 38 of file ip_punt_redirect.cpp.

◆ ip_punt_redirect() [3/3]

VOM::ip_punt_redirect::ip_punt_redirect ( const ip_punt_redirect o)

Copy Constructor.

Definition at line 46 of file ip_punt_redirect.cpp.

◆ ~ip_punt_redirect()

VOM::ip_punt_redirect::~ip_punt_redirect ( )

Destructor.

Definition at line 54 of file ip_punt_redirect.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

void VOM::ip_punt_redirect::dump ( std::ostream &  os)
static

Dump all ip_punt_redirects into the stream provided.

Definition at line 83 of file ip_punt_redirect.cpp.

+ Here is the call graph for this function:

◆ find()

static std::shared_ptr<ip_punt_redirect> VOM::ip_punt_redirect::find ( const interface i)
static

Find an singular instance in the DB for the interface passed.

◆ key()

const ip_punt_redirect::key_t VOM::ip_punt_redirect::key ( ) const

return the object's key

Definition at line 63 of file ip_punt_redirect.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ singular()

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

Return the 'singular instance' of the ip_punt_redirect that matches this object.

Definition at line 126 of file ip_punt_redirect.cpp.

+ Here is the call graph for this function:

◆ to_string()

std::string VOM::ip_punt_redirect::to_string ( void  ) const
virtual

convert to string format for debug purposes

Implements VOM::object_base.

Definition at line 99 of file ip_punt_redirect.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 144 of file ip_punt_redirect.hpp.

◆ singular_db< key_t, ip_punt_redirect >

friend class singular_db< key_t, ip_punt_redirect >
friend

It's the singular_db class that calls replay.

Definition at line 149 of file ip_punt_redirect.hpp.


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