FD.io VPP
v18.10-32-g1161dda
Vector Packet Processing
|
A representation of IP punt_redirect configuration on an interface. More...
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 ip_punt_redirect &o) | |
Copy Constructor. More... | |
~ip_punt_redirect () | |
Destructor. More... | |
std::shared_ptr< ip_punt_redirect > | singular () 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... | |
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_redirect > | find (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... | |
A representation of IP punt_redirect configuration on an interface.
Definition at line 30 of file ip_punt_redirect.hpp.
The key type for ip_punt_redirects.
Definition at line 73 of file ip_punt_redirect.hpp.
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.
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 28 of file ip_punt_redirect.cpp.
VOM::ip_punt_redirect::ip_punt_redirect | ( | const ip_punt_redirect & | o | ) |
Copy Constructor.
Definition at line 37 of file ip_punt_redirect.cpp.
VOM::ip_punt_redirect::~ip_punt_redirect | ( | ) |
Destructor.
Definition at line 45 of file ip_punt_redirect.cpp.
|
static |
Dump all ip_punt_redirects into the stream provided.
Definition at line 64 of file ip_punt_redirect.cpp.
|
static |
Find an singular instance in the DB for the interface passed.
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 105 of file ip_punt_redirect.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 79 of file ip_punt_redirect.cpp.
|
friend |
Definition at line 130 of file ip_punt_redirect.hpp.
|
friend |
It's the singular_db class that calls replay.
Definition at line 135 of file ip_punt_redirect.hpp.