16 #ifndef __VOM_SUB_INTERFACE_CMDS_H__ 17 #define __VOM_SUB_INTERFACE_CMDS_H__ 23 #include <vapi/interface.api.vapi.hpp> 26 namespace sub_interface_cmds {
39 const std::string& name,
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.
create_cmd(HW::item< handle_t > &item, const std::string &name, const handle_t &parent, uint16_t vlan)
Cstrunctor taking the reference to the parent and the sub-interface's VLAN.
A representation of the connection to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A functor class that creates an interface.
HW::item< handle_t > & item()
return the HW item the command updates
A cmd class that Delete an interface.
Base class for intterface Delete commands.
A type declaration of an interface handle in VPP.
A base class for interface Create commands.
The VPP Object Model (VOM) library.
std::string to_string() const
convert to string format for debug purposes