|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
19 namespace route_domain_cmds {
33 return (m_id == other.m_id);
39 msg_t req(
con.ctx(), std::ref(*
this));
41 auto& payload = req.get_request().get_payload();
42 payload.table.table_id = m_id;
43 payload.table.is_ip6 = m_proto.
is_ipv6();
73 return (m_id == other.m_id);
79 msg_t req(
con.ctx(), std::ref(*
this));
81 auto& payload = req.get_request().get_payload();
82 payload.table.table_id = m_id;
83 payload.table.is_ip6 = m_proto.
is_ipv6();
129 return (
"ip-table-dump");
vapi::Ip_table_dump msg_t
std::string to_string() const
convert to string format for debug purposes
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.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
A base class for all RPC commands to VPP.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Ip_table_dump > m_dump
The VAPI event registration.
delete_cmd(HW::item< bool > &item, l3_proto_t proto, route::table_id_t id)
Constructor.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
rc_t wait()
Wait for the issue of the command to complete.
create_cmd(HW::item< bool > &item, l3_proto_t proto, route::table_id_t id)
Constructor.
const static rc_t NOOP
The HW write/update action was/has not been attempted.
std::string to_string() const
convert to string format for debug purposes
A command class that creates the IP table.
rc_t issue(connection &con)
Issue the command to VPP/HW.
vapi::Ip_table_add_del msg_t
convenient typedef
const std::string & to_string() const
convert to string format for debug purposes
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route.
std::string to_string() const
convert to string format for debug purposes
A cmd class that Deletes the IP Table.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A cmd class that Dumps IP fib tables.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
uint32_t table_id_t
type def the table-id
Error codes that VPP will return during a HW write.
rc_t issue(connection &con)
Issue the command to VPP/HW.
std::string to_string() const
convert to string format for debug purposes