|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
20 namespace bridge_domain_arp_entry_cmds {
36 return ((m_mac == other.m_mac) && (m_ip_addr == other.m_ip_addr) &&
37 (m_bd == other.m_bd));
43 msg_t req(
con.ctx(), std::ref(*
this));
45 auto& payload = req.get_request().get_payload();
46 payload.entry.bd_id = m_bd;
48 to_api(m_mac, payload.entry.mac);
49 to_api(m_ip_addr, payload.entry.ip);
61 <<
" bd:" << m_bd <<
" mac:" << m_mac.
to_string()
62 <<
" ip:" << m_ip_addr.to_string();
81 return ((m_mac == other.m_mac) && (m_ip_addr == other.m_ip_addr) &&
82 (m_bd == other.m_bd));
88 msg_t req(
con.ctx(), std::ref(*
this));
90 auto& payload = req.get_request().get_payload();
91 payload.entry.bd_id = m_bd;
93 to_api(m_mac, payload.entry.mac);
94 to_api(m_ip_addr, payload.entry.ip);
107 std::ostringstream s;
109 <<
" bd:" << m_bd <<
" mac:" << m_mac.
to_string()
110 <<
" ip:" << m_ip_addr.to_string();
136 auto& payload =
m_dump->get_request().get_payload();
137 payload.bd_id = m_bd;
149 return (
"bridge-domain-arp-entry-dump");
vapi::Bd_ip_mac_dump msg_t
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.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
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 base class for all RPC commands to VPP.
delete_cmd(HW::item< bool > &item, uint32_t id, const mac_address_t &mac, const boost::asio::ip::address &ip_addr)
Constructor.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A command class that creates or updates the bridge domain ARP Entry.
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.
std::unique_ptr< vapi::Bd_ip_mac_dump > m_dump
The VAPI event registration.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
create_cmd(HW::item< bool > &item, uint32_t id, const mac_address_t &mac, const boost::asio::ip::address &ip_addr)
Constructor.
A representation of the connection to VPP.
rc_t wait()
Wait for the issue of the command to complete.
A cmd class that Dumps all arp termination tables.
const static rc_t NOOP
The HW write/update action was/has not been attempted.
manual_print typedef address
std::string to_string() const
convert to string format for debug purposes
vapi_enum_ip_neighbor_flags to_api(const neighbour::flags_t &f)
vapi::Bd_ip_mac_add_del msg_t
convenient typedef
std::string to_string() const
String conversion.
Type def of a Ethernet address.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A cmd class that deletes a bridge domain ARP entry.
dump_cmd()
Default Constructor.
Error codes that VPP will return during a HW write.
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 delete_cmd &i) const
Comparison operator - only used for UT.