19 namespace gbp_route_domain_cmds {
25 , m_ip4_uu_fwd(ip4_uu_fwd)
26 , m_ip6_uu_fwd(ip6_uu_fwd)
34 (m_ip4_uu_fwd == other.m_ip4_uu_fwd) &&
35 (m_ip6_uu_fwd == other.m_ip6_uu_fwd));
41 msg_t req(con.
ctx(), std::ref(*
this));
43 auto& payload = req.get_request().get_payload();
48 payload.rd.ip4_uu_sw_if_index = m_ip4_uu_fwd.
value();
49 payload.rd.ip6_uu_sw_if_index = m_ip6_uu_fwd.
value();
61 <<
" ip4-uu-fwd:" << m_ip4_uu_fwd.
to_string()
62 <<
" ip6-uu-fwd:" << m_ip6_uu_fwd.
to_string();
81 msg_t req(con.
ctx(), std::ref(*
this));
83 auto& payload = req.get_request().get_payload();
113 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
125 return (
"gbp-route-domain-dump");
std::string to_string() const
convert to string format for debug purposes
static const rc_t NOOP
The HW write/update action was/has not been attempted.
A cmd class that Dumps all the route domains.
uint32_t value() const
get the value of the handle
rc_t issue(connection &con)
Issue the command to VPP/HW.
delete_cmd(HW::item< uint32_t > &item)
Constructor.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes
rc_t wait()
Wait on the commands promise.
T & data()
Return the data read/written.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
A representation of the connection to VPP.
A cmd class that Delete an Route-Domain.
A base class for all RPC commands to VPP.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
A command class that creates an Route-Domain.
A type declaration of an interface handle in VPP.
static const rc_t OK
The HW write was successfull.
rc_t issue(connection &con)
Issue the command to VPP/HW.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
std::string to_string() const
convert to string format for debug purposes
The VPP Object Model (VOM) library.
create_cmd(HW::item< uint32_t > &item, const handle_t ip4_uu_fwd, const handle_t ip6_uu_fwd)
Constructor.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
HW::item< uint32_t > & m_hw_item
A reference to an object's HW::item that the command will update.
HW::item< uint32_t > & item()
return the HW item the command updates
vapi::Gbp_route_domain_add msg_t
convenient typedef