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 =
false);
67 const std::string m_hostname;
77 const bool m_set_broadcast_flag;
84 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Dhcp_client_config>
92 const std::string& hostname);
117 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.
A class that listens to DHCP Events.
Type def of a L2 address as read from VPP.
virtual void succeeded()
Called by the HW Command Q when it is disabled to indicate the command can be considered successful w...
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.
virtual void retire(connection &con)
Retire/cancel a long running command.
A representation of the connection to VPP.
HW::item< bool > & item()
return the HW item the command updates
A base class for all RPC commands to VPP.
std::string to_string() const
convert to string format for debug purposes
bind_cmd(HW::item< bool > &item, const handle_t &itf, const std::string &hostname, const l2_address_t &client_id, bool set_braodcast_flag=false)
Constructor.
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.
A command class that binds the DHCP config to the interface.
A cmd class that Dumps all the DHCP clients.