21 namespace record_cmds {
35 return ((m_itf == other.m_itf) && (m_src == other.m_src));
41 msg_t req(con.
ctx(), std::ref(*
this));
43 auto& payload = req.get_request().get_payload();
44 payload.record.sw_if_index = m_itf.
value();
45 payload.record.input_source =
to_api(m_src);
75 m_src == other.m_src);
81 msg_t req(con.
ctx(), std::ref(*
this));
83 auto& payload = req.get_request().get_payload();
84 payload.record.sw_if_index = m_itf.
value();
85 payload.record.input_source =
to_api(m_src);
114 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
126 return (
"qos-record-dump");
uint32_t value() const
get the value of the handle
A cmd class that deletes a GBP endpoint.
Error codes that VPP will return during a HW write.
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.
create_cmd(HW::item< bool > &item, const handle_t &itf, const source_t &src)
Constructor.
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
A command class that creates or updates the GBP endpoint.
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
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.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
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.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
The VPP Object Model (VOM) library.
rc_t issue(connection &con)
Issue the command to VPP/HW.
vapi_enum_qos_source to_api(const source_t &s)
A cmd class that Dumps all the GBP endpoints.
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_record_enable_disable msg_t
convenient typedef