19 namespace gbp_route_domain_cmds {
27 , m_ip4_uu_fwd(ip4_uu_fwd)
28 , m_ip6_uu_fwd(ip6_uu_fwd)
36 (m_scope == other.m_scope) && (m_ip4_uu_fwd == other.m_ip4_uu_fwd) &&
37 (m_ip6_uu_fwd == other.m_ip6_uu_fwd));
43 msg_t req(con.
ctx(), std::ref(*
this));
45 auto& payload = req.get_request().get_payload();
48 payload.rd.scope = m_scope;
51 payload.rd.ip4_uu_sw_if_index = m_ip4_uu_fwd.
value();
52 payload.rd.ip6_uu_sw_if_index = m_ip6_uu_fwd.
value();
64 <<
" ip4-uu-fwd:" << m_ip4_uu_fwd.
to_string()
65 <<
" ip6-uu-fwd:" << m_ip6_uu_fwd.
to_string();
84 msg_t req(con.
ctx(), std::ref(*
this));
86 auto& payload = req.get_request().get_payload();
101 std::ostringstream s;
116 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
128 return (
"gbp-route-domain-dump");
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.
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.
std::string to_string() const
convert to string format for debug purposes
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 delete_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
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.
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
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.
create_cmd(HW::item< uint32_t > &item, scope_t scope, const handle_t ip4_uu_fwd, const handle_t ip6_uu_fwd)
Constructor.
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