FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
VOM::lldp_binding Class Reference

A representation of LLDP client configuration on an interface. More...

+ Inheritance diagram for VOM::lldp_binding:
+ Collaboration diagram for VOM::lldp_binding:

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_tkey () const
 Return this object's key. More...
 
std::shared_ptr< lldp_bindingsingular () 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_bindingfind (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...
 

Detailed Description

A representation of LLDP client configuration on an interface.

Definition at line 30 of file lldp_binding.hpp.

Member Typedef Documentation

◆ key_t

Typedef for the key of a LLDP binding.

Definition at line 36 of file lldp_binding.hpp.

Constructor & Destructor Documentation

◆ lldp_binding() [1/2]

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.

◆ lldp_binding() [2/2]

VOM::lldp_binding::lldp_binding ( const lldp_binding o)

Copy Constructor.

Definition at line 35 of file lldp_binding.cpp.

◆ ~lldp_binding()

VOM::lldp_binding::~lldp_binding ( )

Destructor.

Definition at line 42 of file lldp_binding.cpp.

Member Function Documentation

◆ dump()

void VOM::lldp_binding::dump ( std::ostream &  os)
static

Dump all LLDP bindings into the stream provided.

Definition at line 72 of file lldp_binding.cpp.

+ Here is the call graph for this function:

◆ find()

std::shared_ptr< lldp_binding > VOM::lldp_binding::find ( const key_t k)
static

Find or add LLDP binding based on its key.

Definition at line 115 of file lldp_binding.cpp.

◆ key()

const lldp_binding::key_t & VOM::lldp_binding::key ( ) const

Return this object's key.

Definition at line 57 of file lldp_binding.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool VOM::lldp_binding::operator== ( const lldp_binding b) const

Comparison operator.

Definition at line 51 of file lldp_binding.cpp.

+ Here is the call graph for this function:

◆ singular()

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.

+ Here is the call graph for this function:

◆ to_string()

std::string VOM::lldp_binding::to_string ( void  ) const
virtual

convert to string format for debug purposes

Implements VOM::object_base.

Definition at line 87 of file lldp_binding.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 132 of file lldp_binding.hpp.

◆ singular_db< key_t, lldp_binding >

friend class singular_db< key_t, lldp_binding >
friend

It's the singular_db class that calls replay()

Definition at line 137 of file lldp_binding.hpp.


The documentation for this class was generated from the following files: