22 namespace binding_cmds {
27 msg_t req(con.
ctx(), std::ref(*
this));
29 auto& payload = req.get_request().get_payload();
30 payload.sw_if_index = m_itf.
value();
33 payload.acl_index = m_acl.
value();
46 msg_t req(con.
ctx(), std::ref(*
this));
48 auto& payload = req.get_request().get_payload();
49 payload.sw_if_index = m_itf.
value();
52 payload.acl_index = m_acl.
value();
65 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
67 auto& payload = m_dump->get_request().get_payload();
68 payload.sw_if_index = ~0;
81 msg_t req(con.
ctx(), std::ref(*
this));
83 auto& payload = req.get_request().get_payload();
84 payload.sw_if_index = m_itf.
value();
87 payload.acl_index = m_acl.
value();
100 msg_t req(con.
ctx(), std::ref(*
this));
102 auto& payload = req.get_request().get_payload();
103 payload.sw_if_index = m_itf.
value();
106 payload.acl_index = m_acl.
value();
119 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
121 auto& payload = m_dump->get_request().get_payload();
122 payload.sw_if_index = ~0;
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.
uint32_t value() const
get the value of the handle
Error codes that VPP will return during a HW write.
static const direction_t INPUT
Permit Direction.
rc_t issue(connection &con)
Issue the command to VPP/HW.
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.
BIND msg_t
convenient typedef
DEFINE_VAPI_MSG_IDS_ACL_API_JSON
rc_t wait()
Wait on the commands promise.