|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
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>
unbind_cmd(HW::item< bool > &item, const handle_t &itf, uint32_t bd, const l2_binding::l2_port_type_t &port_type)
Constructor.
A cmd class that Unbinds L2 configuration from an interface.
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.
The VPP Object Model (VOM) library.
A base class for all RPC commands to VPP.
bind_cmd(HW::item< bool > &item, const handle_t &itf, uint32_t bd, const l2_binding::l2_port_type_t &port_type)
Constructor.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A representation of the connection to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A type declaration of an interface handle in VPP.
A functor class that binds L2 configuration to an interface.
HW::item< bool > & item()
return the HW item the command updates
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
Error codes that VPP will return during a HW write.
bool operator==(const unbind_cmd &i) const
Comparison operator - only used for UT.