|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
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;
128 return (
"gbp-route-domain-dump");
rc_t issue(connection &con)
Issue the command to VPP/HW.
vapi::Gbp_route_domain_dump msg_t
delete_cmd(HW::item< uint32_t > &item)
Constructor.
rc_t wait()
Wait on the commands promise.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
uint32_t value() const
get the value of the handle
A base class for all RPC commands to VPP.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
HW::item< uint32_t > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Gbp_route_domain_dump > m_dump
The VAPI event registration.
A cmd class that Delete an Route-Domain.
create_cmd(HW::item< uint32_t > &item, scope_t scope, const handle_t ip4_uu_fwd, const handle_t ip6_uu_fwd)
Constructor.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
std::string to_string() const
convert to string format for debug purposes
A representation of the connection to VPP.
rc_t wait()
Wait for the issue of the command to complete.
const static rc_t NOOP
The HW write/update action was/has not been attempted.
A command class that creates an Route-Domain.
A type declaration of an interface handle in VPP.
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
A cmd class that Dumps all the route domains.
vapi::Gbp_route_domain_add msg_t
convenient typedef
T & data()
Return the data read/written.
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.
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
rc_t issue(connection &con)
Issue the command to VPP/HW.
std::string to_string() const
convert to string format for debug purposes
Error codes that VPP will return during a HW write.