FD.io VPP
v18.01.2-1-g9b554f3
Vector Packet Processing
|
A entry in the ARP termination table of a Bridge Domain. More...
Public Types | |
typedef std::pair< route::table_id_t, boost::asio::ip::address > | key_t |
The key for a NAT static mapping. More... | |
Public Member Functions | |
nat_static (const boost::asio::ip::address &inside, const boost::asio::ip::address_v4 &outside) | |
Construct an NAT Static binding with the outside address in default table. More... | |
nat_static (const route_domain &rd, const boost::asio::ip::address &inside, const boost::asio::ip::address_v4 &outside) | |
Construct an NAT Static binding with the outside address in route-domain specified. More... | |
nat_static (const nat_static &r) | |
Copy Construct. More... | |
~nat_static () | |
Destructor. More... | |
bool | operator== (const nat_static &n) const |
Comparison operator - for UT. More... | |
const key_t | key () const |
Return the object's key. More... | |
std::shared_ptr< nat_static > | singular () const |
Return the matching 'singular instance'. More... | |
void | replay (void) |
replay the object to create it in hardware More... | |
std::string | to_string () const |
Convert to string for debugging. More... | |
Static Public Member Functions | |
static std::shared_ptr< nat_static > | find (const key_t &key) |
Find the instnace of the bridge_domain domain in the OM. More... | |
static void | dump (std::ostream &os) |
Dump all bridge_domain-doamin into the stream provided. More... | |
Friends | |
class | OM |
class | singular_db< key_t, nat_static > |
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 entry in the ARP termination table of a Bridge Domain.
Definition at line 27 of file nat_static.hpp.
typedef std::pair<route::table_id_t, boost::asio::ip::address> VOM::nat_static::key_t |
The key for a NAT static mapping.
So far only model the address only case. The address is the outside.
Definition at line 35 of file nat_static.hpp.
VOM::nat_static::nat_static | ( | const boost::asio::ip::address & | inside, |
const boost::asio::ip::address_v4 & | outside | ||
) |
Construct an NAT Static binding with the outside address in default table.
Definition at line 23 of file nat_static.cpp.
VOM::nat_static::nat_static | ( | const route_domain & | rd, |
const boost::asio::ip::address & | inside, | ||
const boost::asio::ip::address_v4 & | outside | ||
) |
Construct an NAT Static binding with the outside address in route-domain specified.
Definition at line 32 of file nat_static.cpp.
VOM::nat_static::nat_static | ( | const nat_static & | r | ) |
Copy Construct.
Definition at line 42 of file nat_static.cpp.
VOM::nat_static::~nat_static | ( | ) |
|
static |
Dump all bridge_domain-doamin into the stream provided.
Definition at line 137 of file nat_static.cpp.
|
static |
Find the instnace of the bridge_domain domain in the OM.
Definition at line 125 of file nat_static.cpp.
const nat_static::key_t VOM::nat_static::key | ( | ) | const |
Return the object's key.
Definition at line 59 of file nat_static.cpp.
bool VOM::nat_static::operator== | ( | const nat_static & | n | ) | const |
Comparison operator - for UT.
Definition at line 65 of file nat_static.cpp.
|
virtual |
replay the object to create it in hardware
Implements VOM::object_base.
Definition at line 83 of file nat_static.cpp.
std::shared_ptr< nat_static > VOM::nat_static::singular | ( | ) | const |
Return the matching 'singular instance'.
Definition at line 131 of file nat_static.cpp.
|
virtual |
Convert to string for debugging.
Implements VOM::object_base.
Definition at line 108 of file nat_static.cpp.
|
friend |
Definition at line 146 of file nat_static.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 151 of file nat_static.hpp.