|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
37 return ((m_itf == other.m_itf) && (m_src == other.m_src) &&
38 (m_map_id == other.m_map_id));
44 msg_t req(
con.ctx(), std::ref(*
this));
46 auto& payload = req.get_request().get_payload();
47 payload.mark.sw_if_index = m_itf.
value();
48 payload.mark.map_id = m_map_id;
49 payload.mark.output_source =
to_api(m_src);
61 <<
" src:" << m_src.
to_string() <<
" map-id:" << m_map_id;
79 m_src == other.m_src);
85 msg_t req(
con.ctx(), std::ref(*
this));
87 auto& payload = req.get_request().get_payload();
88 payload.mark.sw_if_index = m_itf.
value();
89 payload.mark.output_source =
to_api(m_src);
130 return (
"qos-mark-dump");
delete_cmd(HW::item< bool > &item, const handle_t &itf, const source_t &src)
Constructor.
vapi::Qos_mark_dump msg_t
rc_t wait()
Wait on the commands promise.
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.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Qos_mark_dump > m_dump
The VAPI event registration.
A cmd class that Dumps all the GBP endpoints.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
rc_t wait()
Wait for the issue of the command to complete.
A type declaration of an interface handle in VPP.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
vapi_enum_qos_source to_api(const source_t &s)
std::string to_string() const
convert to string format for debug purposes
vapi::Qos_mark_enable_disable msg_t
convenient typedef
const std::string & to_string() const
convert to string format for debug purposes
A cmd class that deletes a GBP endpoint.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.
The Source of the QoS classification (i.e.
rc_t issue(connection &con)
Issue the command to VPP/HW.
create_cmd(HW::item< bool > &item, const handle_t &itf, uint32_t map_id, const source_t &src)
Constructor.
A command class that creates or updates the GBP endpoint.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.