FD.io VPP
v21.06-1-gbb7418cf9
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 28 of file lldp_binding.cpp.
VOM::lldp_binding::lldp_binding | ( | const lldp_binding & | o | ) |
Copy Constructor.
Definition at line 35 of file lldp_binding.cpp.
VOM::lldp_binding::~lldp_binding | ( | ) |
Destructor.
Definition at line 42 of file lldp_binding.cpp.
|
static |
Dump all LLDP bindings into the stream provided.
Definition at line 72 of file lldp_binding.cpp.
|
static |
Find or add LLDP binding based on its key.
Definition at line 115 of file lldp_binding.cpp.
const lldp_binding::key_t & VOM::lldp_binding::key | ( | ) | const |
Return this object's key.
Definition at line 57 of file lldp_binding.cpp.
bool VOM::lldp_binding::operator== | ( | const lldp_binding & | b | ) | const |
Comparison operator.
Definition at line 51 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 121 of file lldp_binding.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 87 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.