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_id = m_id;
44 payload.is_ipv6 = m_proto.
is_ipv6();
75 return (m_id == other.m_id);
81 msg_t req(con.
ctx(), std::ref(*
this));
83 auto& payload = req.get_request().get_payload();
84 payload.table_id = m_id;
86 payload.is_ipv6 = m_proto.
is_ipv6();
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.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
create_cmd(HW::item< bool > &item, l3_proto_t proto, route::table_id_t id)
Constructor.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes
Types belonging to Routing.
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.
std::string to_string() const
convert to string format for debug purposes
A representation of the connection to VPP.
HW::item< bool > & item()
return the HW item the command updates
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.
A cmd class that Deletes the IP Table.
static const rc_t OK
The HW write was successfull.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
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.
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
std::string to_string() const
convert to string format for debug purposes
rc_t wait()
Wait on the commands promise.