16 #ifndef __VOM_IGMP_BINDING_H__ 17 #define __VOM_IGMP_BINDING_H__ 62 const key_t
key()
const;
67 std::shared_ptr<igmp_binding>
singular()
const;
77 std::shared_ptr<interface>
itf()
const;
82 static void dump(std::ostream& os);
87 static std::shared_ptr<igmp_binding>
find(
const key_t& k);
107 void handle_replay();
112 void show(std::ostream& os);
133 static std::shared_ptr<igmp_binding> find_or_add(
const igmp_binding& temp);
160 const std::shared_ptr<interface> m_itf;
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::shared_ptr< interface > itf() const
Return the matching'singular' of the interface.
A representation of IGMP binding on an interface.
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.
const key_t key() const
Get the object's key.
A representation of an interface in VPP.
Class definition for listeners to OM events.
inspect command handler Handler
~igmp_binding()
Destructor.
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.
std::shared_ptr< igmp_binding > singular() const
Return the 'singular' of the IGMP binding that matches this object.
A base class for all object_base in the VPP object_base-Model.
The VPP Object Model (VOM) library.
static void dump(std::ostream &os)
Dump all IGMP bindings into the stream provided.
bool operator==(const igmp_binding &l) const
Equal operator.
interface::key_t key_t
A binding is tied to a given interface, hence its key is that of the interface.
igmp_binding(const interface &itf)
Construct a new object matching the desried state.
static std::shared_ptr< igmp_binding > find(const key_t &k)
Find a listen from its key.
std::string key_t
The key for interface's key.