16 #ifndef __VOM_DHCP_CLIENT_CMDS_H__ 17 #define __VOM_DHCP_CLIENT_CMDS_H__ 23 #include <vapi/dhcp.api.vapi.hpp> 24 #include <vapi/vpe.api.vapi.hpp> 27 namespace dhcp_client_cmds {
40 const std::string& hostname,
42 bool set_braodcast_flag,
68 const std::string m_hostname;
78 const bool m_set_broadcast_flag;
97 const std::string& hostname);
122 const std::string m_hostname;
A functor class represents our desire to recieve interface events.
Error codes that VPP will return during a HW write.
virtual void retire(connection &con)
Retire/cancel a long running command.
A class that listens to DHCP Events.
Type def of a L2 address as read from VPP.
bind_cmd(HW::item< bool > &item, const handle_t &itf, const std::string &hostname, const l2_address_t &client_id, bool set_braodcast_flag, const ip_dscp_t &dscp)
Constructor.
A representation of the connection to VPP.
A base class for all RPC commands to VPP.
virtual void succeeded()
Called by the HW Command Q when it is disabled to indicate the command can be considered successful w...
std::string to_string() const
convert to string format for debug purposes
A type declaration of an interface handle in VPP.
The VPP Object Model (VOM) library.
An Event command base class.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A base class for VPP dump commands.
A cmd class that Unbinds Dhcp Config from an interface.
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.
A command class that binds the DHCP config to the interface.
A cmd class that Dumps all the DHCP clients.
HW::item< bool > & item()
return the HW item the command updates