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);
41 msg_t req(con.
ctx(), std::ref(*
this));
43 auto& payload = req.get_request().get_payload();
44 payload.sw_if_index = m_itf.
value();
45 m_cls.to_vpp(payload);
60 msg_t req(con.
ctx(), std::ref(*
this));
62 auto& payload = req.get_request().get_payload();
63 payload.sw_if_index = m_itf.
value();
64 m_cls.to_vpp(payload);
76 msg_t req(con.
ctx(), std::ref(*
this));
78 auto& payload = req.get_request().get_payload();
79 payload.sw_if_index = m_itf.
value();
80 m_cls.to_vpp(payload);
static const rc_t NOOP
The HW write/update action was/has not been attempted.
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 wait()
Wait on the commands promise.
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.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
CMD msg_t
convenient typedef