FD.io VPP
v18.01.2-1-g9b554f3
Vector Packet Processing
|
A representation of LLDP client configuration on an interface. More...
Public Types | |
typedef interface::key_t | key_t |
Typedef for the key of a LLDP binding. More... | |
Public Member Functions | |
lldp_binding (const interface &itf, const std::string &hostname) | |
Construct a new object matching the desried state. More... | |
lldp_binding (const lldp_binding &o) | |
Copy Constructor. More... | |
~lldp_binding () | |
Destructor. More... | |
bool | operator== (const lldp_binding &b) const |
Comparison operator. More... | |
const key_t & | key () const |
Return this object's key. More... | |
std::shared_ptr< lldp_binding > | singular () const |
Return the 'singular' of the LLDP binding 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 LLDP bindings into the stream provided. More... | |
static std::shared_ptr< lldp_binding > | find (const key_t &k) |
Find or add LLDP binding based on its key. More... | |
Friends | |
class | OM |
class | singular_db< key_t, lldp_binding > |
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 LLDP client configuration on an interface.
Definition at line 30 of file lldp_binding.hpp.
Typedef for the key of a LLDP binding.
Definition at line 36 of file lldp_binding.hpp.
VOM::lldp_binding::lldp_binding | ( | const interface & | itf, |
const std::string & | hostname | ||
) |
Construct a new object matching the desried state.
Definition at line 27 of file lldp_binding.cpp.
VOM::lldp_binding::lldp_binding | ( | const lldp_binding & | o | ) |
Copy Constructor.
Definition at line 34 of file lldp_binding.cpp.
VOM::lldp_binding::~lldp_binding | ( | ) |
Destructor.
Definition at line 41 of file lldp_binding.cpp.
|
static |
Dump all LLDP bindings into the stream provided.
Definition at line 71 of file lldp_binding.cpp.
|
static |
Find or add LLDP binding based on its key.
Definition at line 114 of file lldp_binding.cpp.
const lldp_binding::key_t & VOM::lldp_binding::key | ( | ) | const |
Return this object's key.
Definition at line 56 of file lldp_binding.cpp.
bool VOM::lldp_binding::operator== | ( | const lldp_binding & | b | ) | const |
Comparison operator.
Definition at line 50 of file lldp_binding.cpp.
std::shared_ptr< lldp_binding > VOM::lldp_binding::singular | ( | ) | const |
Return the 'singular' of the LLDP binding that matches this object.
Definition at line 120 of file lldp_binding.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 86 of file lldp_binding.cpp.
|
friend |
Definition at line 132 of file lldp_binding.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 137 of file lldp_binding.hpp.