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,
65 const std::string m_hostname;
77 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Dhcp_client_config>
85 const std::string& hostname);
110 const std::string m_hostname;
sll srl srl sll sra u16x4 i
A command class that binds the DHCP config to the interface.
bind_cmd(HW::item< bool > &item, const handle_t &itf, const std::string &hostname, const l2_address_t &client_id)
Constructor.
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.
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.