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();
117 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
129 return (
"ip-table-dump");
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
uint32_t table_id_t
type def the table-id
static const rc_t NOOP
The HW write/update action was/has not been attempted.
create_cmd(HW::item< bool > &item, l3_proto_t proto, route::table_id_t id)
Constructor.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
Error codes that VPP will return during a HW write.
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route...
rc_t issue(connection &con)
Issue the command to VPP/HW.
delete_cmd(HW::item< bool > &item, l3_proto_t proto, route::table_id_t id)
Constructor.
rc_t wait()
Wait on the commands promise.
std::string to_string() const
convert to string format for debug purposes
A representation of the connection to VPP.
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
A base class for all RPC commands to VPP.
A command class that creates the IP table.
#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.
const std::string & to_string() const
convert to string format for debug purposes
A cmd class that Deletes the IP Table.
static const rc_t OK
The HW write was successfull.
std::string to_string() const
convert to string format for debug purposes
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
The VPP Object Model (VOM) library.
A cmd class that Dumps IP fib tables.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
rc_t issue(connection &con)
Issue the command to VPP/HW.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
HW::item< bool > & item()
return the HW item the command updates
vl_api_fib_path_nh_proto_t proto
vapi::Ip_table_add_del msg_t
convenient typedef