18 #include <vapi/vpe.api.vapi.hpp> 25 msg_t req(con.
ctx(), std::ref(*
this));
27 auto& payload = req.get_request().get_payload();
28 payload.sw_if_index = m_itf.
value();
29 m_cls.to_vpp(payload);
43 msg_t req(con.
ctx(), std::ref(*
this));
45 auto& payload = req.get_request().get_payload();
46 payload.sw_if_index = m_itf.
value();
47 m_cls.to_vpp(payload);
62 msg_t req(con.
ctx(), std::ref(*
this));
64 auto& payload = req.get_request().get_payload();
65 payload.sw_if_index = m_itf.
value();
66 m_cls.to_vpp(payload);
80 msg_t req(con.
ctx(), std::ref(*
this));
82 auto& payload = req.get_request().get_payload();
83 payload.sw_if_index = m_itf.
value();
84 m_cls.to_vpp(payload);
static const rc_t NOOP
The HW write/update action was/has not been attempted.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
uint32_t value() const
get the value of the handle
rc_t issue(connection &con)
Issue the command to VPP/HW.
Error codes that VPP will return during a HW write.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A representation of the connection to VPP.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
static const rc_t OK
The HW write was successfull.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
The VPP Object Model (VOM) library.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
CMD msg_t
convenient typedef
rc_t wait()
Wait on the commands promise.