16 #ifndef __VOM_L2_BINDING_CMDS_H__ 17 #define __VOM_L2_BINDING_CMDS_H__ 22 #include <vapi/l2.api.vapi.hpp> 23 #include <vapi/vpe.api.vapi.hpp> 26 namespace l2_binding_cmds {
32 :
public rpc_cmd<HW::item<bool>, vapi::Sw_interface_set_l2_bridge>
78 :
public rpc_cmd<HW::item<bool>, vapi::Sw_interface_set_l2_bridge>
Error codes that VPP will return during a HW write.
A functor class that binds L2 configuration to an interface.
A representation of the connection to VPP.
A base class for all RPC commands to VPP.
std::string to_string() const
convert to string format for debug purposes
A type declaration of an interface handle in VPP.
A cmd class that Unbinds L2 configuration from an interface.
bind_cmd(HW::item< bool > &item, const handle_t &itf, uint32_t bd, const l2_binding::l2_port_type_t &port_type)
Constructor.
The VPP Object Model (VOM) library.
HW::item< bool > & item()
return the HW item the command updates
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.