FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
A representation of L3 configuration on an interface. More...
Public Types | |
typedef std::pair< interface::key_t, route::prefix_t > | key_t |
The key type for l3_bindings. More... | |
typedef singular_db< key_t, l3_binding >::const_iterator | const_iterator_t |
The iterator type. More... | |
Public Member Functions | |
l3_binding (const interface &itf, const route::prefix_t &pfx) | |
Construct a new object matching the desried state. More... | |
l3_binding (const l3_binding &o) | |
Copy Constructor. More... | |
~l3_binding () | |
Destructor. More... | |
bool | operator== (const l3_binding &l) const |
Comparison operator. More... | |
const key_t | key () const |
Get the object's key. More... | |
std::shared_ptr< l3_binding > | singular () const |
Return the 'singular instance' of the L3-Config that matches this object. More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
const route::prefix_t & | prefix () const |
Return the prefix associated with this L3 binding. More... | |
const interface & | itf () const |
Return the interface associated with this L3 binding. More... | |
Static Public Member Functions | |
static const_iterator_t | cbegin () |
static const_iterator_t | cend () |
static void | dump (std::ostream &os) |
Dump all l3_bindings into the stream provided. More... | |
static std::shared_ptr< l3_binding > | find (const key_t &k) |
Find a binding from its key. More... | |
Friends | |
class | OM |
class | singular_db< key_t, l3_binding > |
e* It's the singular_db class that calls replay() More... | |
class | interface |
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 L3 configuration on an interface.
Definition at line 30 of file l3_binding.hpp.
typedef singular_db<key_t, l3_binding>::const_iterator VOM::l3_binding::const_iterator_t |
The iterator type.
Definition at line 66 of file l3_binding.hpp.
typedef std::pair<interface::key_t, route::prefix_t> VOM::l3_binding::key_t |
The key type for l3_bindings.
Definition at line 36 of file l3_binding.hpp.
VOM::l3_binding::l3_binding | ( | const interface & | itf, |
const route::prefix_t & | pfx | ||
) |
Construct a new object matching the desried state.
Definition at line 28 of file l3_binding.cpp.
VOM::l3_binding::l3_binding | ( | const l3_binding & | o | ) |
Copy Constructor.
Definition at line 35 of file l3_binding.cpp.
VOM::l3_binding::~l3_binding | ( | ) |
|
static |
|
static |
|
static |
Dump all l3_bindings into the stream provided.
Definition at line 148 of file l3_binding.cpp.
|
static |
Find a binding from its key.
Definition at line 136 of file l3_binding.cpp.
const interface & VOM::l3_binding::itf | ( | ) | const |
Return the interface associated with this L3 binding.
Definition at line 88 of file l3_binding.cpp.
const l3_binding::key_t VOM::l3_binding::key | ( | ) | const |
Get the object's key.
Definition at line 57 of file l3_binding.cpp.
bool VOM::l3_binding::operator== | ( | const l3_binding & | l | ) | const |
Comparison operator.
Definition at line 51 of file l3_binding.cpp.
const route::prefix_t & VOM::l3_binding::prefix | ( | ) | const |
Return the prefix associated with this L3 binding.
Definition at line 82 of file l3_binding.cpp.
std::shared_ptr< l3_binding > VOM::l3_binding::singular | ( | ) | const |
Return the 'singular instance' of the L3-Config that matches this object.
Definition at line 142 of file l3_binding.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 106 of file l3_binding.cpp.
|
friend |
Definition at line 168 of file l3_binding.hpp.
|
friend |
Definition at line 151 of file l3_binding.hpp.
|
friend |
e* It's the singular_db class that calls replay()
Definition at line 156 of file l3_binding.hpp.