|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
26 for (uint32_t ii = 0; ii < 4; ii++) {
27 std::copy(o[ii].begin(), o[ii].
end(), std::begin(
rows[ii].outputs));
43 return (m_id == other.m_id && m_outputs == other.m_outputs);
49 msg_t req(
con.ctx(), std::ref(*
this));
51 auto& payload = req.get_request().get_payload();
53 payload.map.id = m_id;
54 to_api(m_outputs, payload.map.rows);
85 msg_t req(
con.ctx(), std::ref(*
this));
87 auto& payload = req.get_request().get_payload();
88 payload.map.id = m_id;
129 return (
"qos-map-dump");
static void to_api(const map::outputs_t &o, vapi_type_qos_egress_map_row rows[4])
vapi::Qos_egress_map_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.
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
A base class for all RPC commands to VPP.
std::array< std::array< bits_t, 256 >, 4 > outputs_t
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Qos_egress_map_dump > m_dump
The VAPI event registration.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
A cmd class that Dumps all the GBP endpoints.
A command class that creates or updates the GBP endpoint.
A cmd class that deletes a GBP endpoint.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
f64 end
end of the time range
rc_t wait()
Wait for the issue of the command to complete.
vl_api_qos_egress_map_row_t rows[4]
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
vapi::Qos_egress_map_update msg_t
convenient typedef
std::string to_string() const
convert to string format for debug purposes
create_cmd(HW::item< bool > &item, uint32_t id, const map::outputs_t &o)
Constructor.
rc_t issue(connection &con)
Issue the command to VPP/HW.
std::string to_string() const
convert to string format for debug purposes
Error codes that VPP will return during a HW write.
rc_t issue(connection &con)
Issue the command to VPP/HW.
delete_cmd(HW::item< bool > &item, uint32_t id)
Constructor.