FD.io VPP
v18.01.2-1-g9b554f3
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::deque< std::shared_ptr< l3_binding > > | find (const interface &i) |
Find all bindings in the DB for the interface passed. 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 27 of file l3_binding.cpp.
VOM::l3_binding::l3_binding | ( | const l3_binding & | o | ) |
Copy Constructor.
Definition at line 34 of file l3_binding.cpp.
VOM::l3_binding::~l3_binding | ( | ) |
|
static |
|
static |
|
static |
Dump all l3_bindings into the stream provided.
Definition at line 147 of file l3_binding.cpp.
|
static |
Find all bindings in the DB for the interface passed.
Definition at line 161 of file l3_binding.cpp.
|
static |
Find a binding from its key.
Definition at line 135 of file l3_binding.cpp.
const interface & VOM::l3_binding::itf | ( | ) | const |
Return the interface associated with this L3 binding.
Definition at line 87 of file l3_binding.cpp.
const l3_binding::key_t VOM::l3_binding::key | ( | ) | const |
Get the object's key.
Definition at line 56 of file l3_binding.cpp.
bool VOM::l3_binding::operator== | ( | const l3_binding & | l | ) | const |
Comparison operator.
Definition at line 50 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 81 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 141 of file l3_binding.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 105 of file l3_binding.cpp.
|
friend |
Definition at line 173 of file l3_binding.hpp.
|
friend |
Definition at line 156 of file l3_binding.hpp.
|
friend |
e* It's the singular_db class that calls replay()
Definition at line 161 of file l3_binding.hpp.