|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_SRPC_CMD_H__
17 #define __VOM_SRPC_CMD_H__
23 template <
typename MSG>
47 int stats_index = reply.get_response().get_payload().stats_index;
48 int retval = reply.get_response().get_payload().retval;
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
srpc_cmd(HW::item< handle_t > &item)
Constructor taking the HW item that will be updated by the command.
static const rc_t & from_vpp_retval(int32_t rv)
Get the rc_t from the VPP API value.
A base class for all RPC commands to VPP.
virtual std::string to_string() const =0
convert to string format for debug purposes
A type declaration of an interface handle in VPP.
const static log_level_t DEBUG
HW::item< handle_t > & item()
return the HW item the command updates
virtual vapi_error_e operator()(MSG &reply)
call operator used as a callback by VAPI when the reply is available
const static handle_t INVALID
A value of an interface handle_t that means the itf does not exist.
Error codes that VPP will return during a HW write.
virtual ~srpc_cmd()
Desructor.
void fulfill(const HW::item< handle_t > &d)
Fulfill the commands promise.
MSG msg_t
convenient typedef