16 #ifndef __VOM_DHCP_CONFIG_H__ 17 #define __VOM_DHCP_CONFIG_H__ 27 namespace dhcp_config_cmds {
45 const std::string& hostname,
46 bool set_broadcast_flag =
true);
52 const std::string& hostname,
54 bool set_broadcast_flag =
true);
74 const key_t& key()
const;
79 std::shared_ptr<dhcp_config> singular()
const;
84 std::string to_string()
const;
89 static void dump(std::ostream& os);
94 static std::shared_ptr<dhcp_config> find(
const key_t& k);
133 virtual ~event_handler() =
default;
143 void handle_replay();
148 void show(std::ostream& os);
159 static event_handler m_evh;
169 static std::shared_ptr<dhcp_config> find_or_add(
const dhcp_config& temp);
196 const std::shared_ptr<interface> m_itf;
201 const std::string m_hostname;
211 const bool m_set_broadcast_flag;
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.