16 #ifndef __VOM_LLDP_BINDING_H__ 17 #define __VOM_LLDP_BINDING_H__ 61 const key_t&
key()
const;
66 std::shared_ptr<lldp_binding>
singular()
const;
76 static void dump(std::ostream& os);
81 static std::shared_ptr<lldp_binding>
find(
const key_t& k);
101 void handle_replay();
106 void show(std::ostream& os);
127 static std::shared_ptr<lldp_binding> find_or_add(
const lldp_binding& temp);
154 const std::shared_ptr<interface> m_itf;
159 const std::string m_port_desc;
A representation of LLDP client configuration on an interface.
static void dump(std::ostream &os)
Dump all LLDP bindings into the stream provided.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
static std::shared_ptr< lldp_binding > find(const key_t &k)
Find or add LLDP binding based on its key.
std::string to_string() const
convert to string format for debug purposes
A Database to store the unique 'singular' instances of a single object type.
bool operator==(const lldp_binding &b) const
Comparison operator.
~lldp_binding()
Destructor.
A representation of an interface in VPP.
Class definition for listeners to OM events.
inspect command handler Handler
void event_handler(void *tls_async)
const key_t & key() const
Return this object's key.
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_binding(const interface &itf, const std::string &hostname)
Construct a new object matching the desried state.
interface::key_t key_t
Typedef for the key of a LLDP binding.
std::shared_ptr< lldp_binding > singular() const
Return the 'singular' of the LLDP binding that matches this object.
std::string key_t
The key for interface's key.