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);
118 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
130 return (
"qos-mark-dump");
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
uint32_t value() const
get the value of the handle
A command class that creates or updates the GBP endpoint.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
rc_t wait()
Wait on the commands promise.
std::string to_string() const
convert to string format for debug purposes
delete_cmd(HW::item< bool > &item, const handle_t &itf, const source_t &src)
Constructor.
A cmd class that deletes a GBP endpoint.
A representation of the connection to VPP.
create_cmd(HW::item< bool > &item, const handle_t &itf, uint32_t map_id, const source_t &src)
Constructor.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
A base class for all RPC commands to VPP.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
std::string to_string() const
convert to string format for debug purposes
The Source of the QoS classification (i.e.
A type declaration of an interface handle in VPP.
const std::string & to_string() const
convert to string format for debug purposes
static const rc_t OK
The HW write was successfull.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
The VPP Object Model (VOM) library.
std::string to_string() const
convert to string format for debug purposes
vapi_enum_qos_source to_api(const source_t &s)
rc_t issue(connection &con)
Issue the command to VPP/HW.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
HW::item< bool > & item()
return the HW item the command updates
vapi::Qos_mark_enable_disable msg_t
convenient typedef
A cmd class that Dumps all the GBP endpoints.