FD.io VPP
v19.01.2-3-gf61a1a8
Vector Packet Processing
|
A representation of LLDP global configuration. More...
Public Types | |
typedef std::string | key_t |
The key for the global conifugration is the 'system' namse. More... | |
Public Member Functions | |
lldp_global (const std::string &system_name, uint32_t tx_hold, uint32_t tx_interval) | |
Construct a new object matching the desried state. More... | |
lldp_global (const lldp_global &o) | |
Copy Constructor. More... | |
~lldp_global () | |
Destructor. More... | |
const key_t & | key () const |
Get this objects key. More... | |
bool | operator== (const lldp_global &l) const |
Comparison operator. More... | |
std::shared_ptr< lldp_global > | singular () const |
Return the 'singular' of the LLDP global 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 globals into the stream provided. More... | |
static std::shared_ptr< lldp_global > | find (const key_t &k) |
Find LLDP global config from its key. More... | |
Friends | |
class | OM |
class | singular_db< key_t, lldp_global > |
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 global configuration.
Definition at line 29 of file lldp_global.hpp.
typedef std::string VOM::lldp_global::key_t |
The key for the global conifugration is the 'system' namse.
Definition at line 35 of file lldp_global.hpp.
VOM::lldp_global::lldp_global | ( | const std::string & | system_name, |
uint32_t | tx_hold, | ||
uint32_t | tx_interval | ||
) |
Construct a new object matching the desried state.
Definition at line 28 of file lldp_global.cpp.
VOM::lldp_global::lldp_global | ( | const lldp_global & | o | ) |
Copy Constructor.
Definition at line 37 of file lldp_global.cpp.
VOM::lldp_global::~lldp_global | ( | ) |
Destructor.
Definition at line 44 of file lldp_global.cpp.
|
static |
Dump all LLDP globals into the stream provided.
Definition at line 72 of file lldp_global.cpp.
|
static |
Find LLDP global config from its key.
Definition at line 113 of file lldp_global.cpp.
const lldp_global::key_t & VOM::lldp_global::key | ( | ) | const |
Get this objects key.
Definition at line 53 of file lldp_global.cpp.
bool VOM::lldp_global::operator== | ( | const lldp_global & | l | ) | const |
Comparison operator.
Definition at line 59 of file lldp_global.cpp.
std::shared_ptr< lldp_global > VOM::lldp_global::singular | ( | ) | const |
Return the 'singular' of the LLDP global that matches this object.
Definition at line 119 of file lldp_global.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 87 of file lldp_global.cpp.
|
friend |
Definition at line 133 of file lldp_global.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 138 of file lldp_global.hpp.