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;
117 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
129 return (
"qos-map-dump");
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.
create_cmd(HW::item< bool > &item, uint32_t id, const map::outputs_t &o)
Constructor.
std::string to_string() const
convert to string format for debug purposes
delete_cmd(HW::item< bool > &item, uint32_t id)
Constructor.
vl_api_qos_egress_map_row_t rows[4]
rc_t wait()
Wait on the commands promise.
std::string to_string() const
convert to string format for debug purposes
static void to_api(const map::outputs_t &o, vapi_type_qos_egress_map_row rows[4])
std::string to_string() const
convert to string format for debug purposes
A cmd class that deletes a GBP endpoint.
A representation of the connection to VPP.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
A base class for all RPC commands to VPP.
A cmd class that Dumps all the GBP endpoints.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
std::array< std::array< bits_t, 256 >, 4 > outputs_t
std::string to_string() const
convert to string format for debug purposes
static const rc_t OK
The HW write was successfull.
A command class that creates or updates the GBP endpoint.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
The VPP Object Model (VOM) library.
f64 end
end of the time range
rc_t issue(connection &con)
Issue the command to VPP/HW.
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.
rc_t issue(connection &con)
Issue the command to VPP/HW.
HW::item< bool > & item()
return the HW item the command updates
vapi::Qos_egress_map_update msg_t
convenient typedef