|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
21 namespace l2_emulation_cmds {
31 return (m_itf == other.m_itf);
37 msg_t req(
con.ctx(), std::ref(*
this));
39 auto& payload = req.get_request().get_payload();
40 payload.sw_if_index = m_itf.
value();
67 return (m_itf == other.m_itf);
73 msg_t req(
con.ctx(), std::ref(*
this));
75 auto& payload = req.get_request().get_payload();
76 payload.sw_if_index = m_itf.
value();
rc_t wait()
Wait on the commands promise.
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
DEFINE_VAPI_MSG_IDS_L2E_API_JSON
uint32_t value() const
get the value of the handle
A base class for all RPC commands to VPP.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
disable_cmd(HW::item< bool > &item, const handle_t &itf)
Constructor.
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 enable L2 emulation to an interface.
std::string to_string() const
convert to string format for debug purposes
vapi::L2_emulation msg_t
convenient typedef
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
A cmd class that Unbinds L2 configuration from an interface.
enable_cmd(HW::item< bool > &item, const handle_t &itf)
Constructor.
bool operator==(const disable_cmd &i) const
Comparison operator - only used for UT.
rc_t issue(connection &con)
Issue the command to VPP/HW.
rc_t issue(connection &con)
Issue the command to VPP/HW.
Error codes that VPP will return during a HW write.
bool operator==(const enable_cmd &i) const
Comparison operator - only used for UT.