16 #ifndef __VOM_DHCP_CONFIG_CMDS_H__ 17 #define __VOM_DHCP_CONFIG_CMDS_H__ 22 #include <vapi/dhcp.api.vapi.hpp> 23 #include <vapi/vpe.api.vapi.hpp> 26 namespace dhcp_config_cmds {
39 const std::string& hostname,
41 bool set_braodcast_flag =
false);
66 const std::string m_hostname;
76 const bool m_set_broadcast_flag;
83 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Dhcp_client_config>
91 const std::string& hostname);
116 const std::string m_hostname;
A command class that binds the DHCP config to the interface.
rc_t issue(connection &con)
Issue the command to VPP/HW.
Error codes that VPP will return during a HW write.
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...
virtual void retire(connection &con)
Retire/cancel a long running command.
A cmd class that Unbinds Dhcp Config from an interface.
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
HW::item< bool > & item()
return the HW item the command updates
A base class for all RPC commands to VPP.
A functor class represents our desire to recieve interface events.
A type declaration of an interface handle in 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=false)
Constructor.
The VPP Object Model (VOM) library.
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.
An Event command base class.
A class that listens to DHCP Events.