16 #ifndef __VOM_DHCP_CONFIG_H__ 17 #define __VOM_DHCP_CONFIG_H__ 27 namespace dhcp_config_cmds {
50 const std::string& hostname,
71 const key_t& key()
const;
76 std::shared_ptr<dhcp_config> singular()
const;
81 std::string to_string()
const;
86 static void dump(std::ostream& os);
91 static std::shared_ptr<dhcp_config> find(
const key_t& k);
130 virtual ~event_handler() =
default;
140 void handle_replay();
145 void show(std::ostream& os);
156 static event_handler m_evh;
166 static std::shared_ptr<dhcp_config> find_or_add(
const dhcp_config& temp);
193 const std::shared_ptr<interface> m_itf;
198 const std::string m_hostname;
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
Type def of a L2 address as read from VPP.
A representation of DHCP client configuration on an interface.
A Database to store the unique 'singular' instances of a single object type.
A functor class represents our desire to recieve interface events.
A representation of an interface in VPP.
Class definition for listeners to OM events.
inspect command handler Handler
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.
interface::key_t key_t
typedef for the DHCP config key type
A representation of a method call to VPP.
A class that listens to DHCP Events.
std::string key_t
The key for interface's key.
HW::item< bool > m_status
The HW::item associated with this command.