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
std::shared_ptr< lldp_binding > singular() const
Return the 'singular' of the LLDP binding that matches this object.
A Database to store the unique 'singular' instances of a single object type.
~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)
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.
bool operator==(const lldp_binding &b) const
Comparison operator.
The VPP Object Model (VOM) library.
lldp_binding(const interface &itf, const std::string &hostname)
Construct a new object matching the desried state.
const key_t & key() const
Return this object's key.
interface::key_t key_t
Typedef for the key of a LLDP binding.
std::string key_t
The key for interface's key.