|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
21 namespace store_cmds {
37 return ((m_itf == other.m_itf) && (m_src == other.m_src) &&
38 (m_value == other.m_value));
44 msg_t req(
con.ctx(), std::ref(*
this));
46 auto& payload = req.get_request().get_payload();
47 payload.store.sw_if_index = m_itf.
value();
48 payload.store.input_source =
to_api(m_src);
49 payload.store.value = m_value;
61 <<
" src:" << m_src.
to_string() <<
" value:" <<
static_cast<int>(m_value);
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.store.sw_if_index = m_itf.
value();
89 payload.store.input_source =
to_api(m_src);
130 return (
"qos-store-dump");
vapi::Qos_store_dump msg_t
rc_t issue(connection &con)
Issue the command to VPP/HW.
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.
A cmd class that Dumps all the GBP endpoints.
create_cmd(HW::item< bool > &item, const handle_t &itf, const source_t &src, bits_t value)
Constructor.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Qos_store_dump > m_dump
The VAPI event registration.
delete_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.
A command class that creates or updates the GBP endpoint.
#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.
std::string to_string() const
convert to string format for debug purposes
A cmd class that deletes a GBP endpoint.
A type declaration of an interface handle in VPP.
bool operator==(const delete_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_store_enable_disable msg_t
convenient typedef
const std::string & to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
Error codes that VPP will return during a HW write.
The Source of the QoS classification (i.e.