|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
22 namespace arp_proxy_config_cmds {
25 const boost::asio::ip::address_v4&
low,
26 const boost::asio::ip::address_v4& high)
35 return ((m_low == o.m_low) && (m_high == o.m_high));
41 msg_t req(
con.ctx(), std::ref(*
this));
43 auto& payload = req.get_request().get_payload();
46 to_api(m_low, payload.proxy.low);
47 to_api(m_high, payload.proxy.hi);
61 <<
" low:" << m_low.to_string() <<
" high:" << m_high.to_string();
67 const boost::asio::ip::address_v4&
low,
68 const boost::asio::ip::address_v4& high)
77 return ((m_low == o.m_low) && (m_high == o.m_high));
83 msg_t req(
con.ctx(), std::ref(*
this));
85 auto& payload = req.get_request().get_payload();
88 to_api(m_low, payload.proxy.low);
89 to_api(m_high, payload.proxy.hi);
102 std::ostringstream s;
104 <<
" low:" << m_low.to_string() <<
" high:" << m_high.to_string();
130 return (
"ARP-proxy-dump");
DEFINE_VAPI_MSG_IDS_ARP_API_JSON
vapi::Proxy_arp_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.
The VPP Object Model (VOM) library.
config_cmd(HW::item< bool > &item, const boost::asio::ip::address_v4 &lo, const boost::asio::ip::address_v4 &high)
Constructor.
const static rc_t OK
The HW write was successfull.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A base class for all RPC commands to VPP.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A cmd class that Dumps all the Proxy ARP configs.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Proxy_arp_dump > m_dump
The VAPI event registration.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
bool operator==(const unconfig_cmd &i) const
Comparison operator - only used for UT.
unconfig_cmd(HW::item< bool > &item, const boost::asio::ip::address_v4 &lo, const boost::asio::ip::address_v4 &hig)
Constructor.
A representation of the connection to VPP.
rc_t wait()
Wait for the issue of the command to complete.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
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
std::string to_string() const
convert to string format for debug purposes
A command class that adds the ARP Proxy config.
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::Proxy_arp_add_del msg_t
convenient typedef
A cmd class that Unconfigs ArpProxy Config from an interface.
bool operator==(const config_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.