|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
19 namespace l2_vtr_cmds {
35 (m_tag == other.m_tag));
41 msg_t req(
con.ctx(), std::ref(*
this));
43 auto& payload = req.get_request().get_payload();
44 payload.sw_if_index = m_itf.
value();
46 payload.push_dot1q = 1;
rc_t wait()
Wait on the commands promise.
The VPP Object Model (VOM) library.
uint32_t value() const
get the value of the handle
A base class for all RPC commands to VPP.
bool operator==(const set_cmd &i) const
Comparison operator - only used for UT.
HW::item< l2_vtr::option_t > & 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.
int value() const
Return the value of the enum - same as integer conversion.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
set_cmd(HW::item< l2_vtr::option_t > &item, const handle_t &itf, uint16_t tag)
Constructor.
A type declaration of an interface handle in VPP.
std::string to_string() const
convert to string format for debug purposes
A cmd class sets the VTR operation.
vapi::L2_interface_vlan_tag_rewrite msg_t
convenient typedef
T & data()
Return the data read/written.
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.