16 #ifndef __VOM_LLDP_BINDING_CMDS_H__ 17 #define __VOM_LLDP_BINDING_CMDS_H__ 23 #include <vapi/lldp.api.vapi.hpp> 26 namespace lldp_binding_cmds {
32 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Sw_interface_set_lldp>
40 const std::string& port_desc);
65 const std::string m_port_desc;
72 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Sw_interface_set_lldp>
std::string to_string() const
convert to string format for debug purposes
Error codes that VPP will return during a HW write.
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.
bind_cmd(HW::item< bool > &item, const handle_t &itf, const std::string &port_desc)
Constructor.
A cmd class that Unbinds Lldp Config from an interface.
A type declaration of an interface handle in VPP.
A command class that binds the LLDP config to the interface.
The VPP Object Model (VOM) library.
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.
rc_t issue(connection &con)
Issue the command to VPP/HW.