16 #ifndef __VOM_LLDP_GLOBAL_H__ 17 #define __VOM_LLDP_GLOBAL_H__ 42 uint32_t tx_interval);
57 const key_t&
key()
const;
67 std::shared_ptr<lldp_global>
singular()
const;
77 static void dump(std::ostream& os);
82 static std::shared_ptr<lldp_global>
find(
const key_t& k);
102 void handle_replay();
107 void show(std::ostream& os);
128 static std::shared_ptr<lldp_global> find_or_add(
const lldp_global& temp);
153 const std::string m_system_name;
159 uint32_t m_tx_interval;
const key_t & key() const
Get this objects key.
static void dump(std::ostream &os)
Dump all LLDP globals into the stream provided.
bool operator==(const lldp_global &l) const
Comparison operator.
std::shared_ptr< lldp_global > singular() const
Return the 'singular' of the LLDP global that matches this object.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::string key_t
The key for the global conifugration is the 'system' namse.
std::string to_string() const
convert to string format for debug purposes
A representation of LLDP global configuration.
static std::shared_ptr< lldp_global > find(const key_t &k)
Find LLDP global config from its key.
A Database to store the unique 'singular' instances of a single object type.
lldp_global(const std::string &system_name, uint32_t tx_hold, uint32_t tx_interval)
Construct a new object matching the desried state.
Class definition for listeners to OM events.
inspect command handler Handler
void event_handler(void *tls_async)
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
The interface to writing objects into VPP OM.
A base class for all object_base in the VPP object_base-Model.
The VPP Object Model (VOM) library.
~lldp_global()
Destructor.