|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 namespace l2_binding_cmds {
27 , m_port_type(port_type)
34 return ((m_itf == other.m_itf) && (m_bd == other.m_bd) &&
35 (m_port_type == other.m_port_type));
41 msg_t req(
con.ctx(), std::ref(*
this));
43 auto& payload = req.get_request().get_payload();
44 payload.rx_sw_if_index = m_itf.
value();
66 <<
" bd:" << m_bd <<
" port-type:" << m_port_type.
to_string();
78 , m_port_type(port_type)
85 return ((m_itf == other.m_itf) && (m_bd == other.m_bd) &&
86 (m_port_type == other.m_port_type));
92 msg_t req(
con.ctx(), std::ref(*
this));
94 auto& payload = req.get_request().get_payload();
95 payload.rx_sw_if_index = m_itf.
value();
118 std::ostringstream s;
120 <<
" bd:" << m_bd <<
" port-type:" << m_port_type;
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.
rc_t wait()
Wait on the commands promise.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
uint32_t value() const
get the value of the handle
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.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
rc_t issue(connection &con)
Issue the command to VPP/HW.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
const static rc_t NOOP
The HW write/update action was/has not been attempted.
@ L2_API_PORT_TYPE_NORMAL
A type declaration of an interface handle in VPP.
std::string to_string() const
convert to string format for debug purposes
A functor class that binds L2 configuration to an interface.
vapi::Sw_interface_set_l2_bridge msg_t
convenient typedef
const std::string & to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
@ L2_API_PORT_TYPE_UU_FWD
const static l2_port_type_t L2_PORT_TYPE_BVI
Error codes that VPP will return during a HW write.
const static l2_port_type_t L2_PORT_TYPE_UU_FWD
bool operator==(const unbind_cmd &i) const
Comparison operator - only used for UT.