|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 namespace bond_group_binding_cmds {
25 , m_bond_itf(bond_itf)
33 return ((m_bond_itf == other.m_bond_itf) && (m_itf == other.m_itf));
39 msg_t req(
con.ctx(), std::ref(*
this));
41 auto& payload = req.get_request().get_payload();
44 payload.bond_sw_if_index = m_bond_itf.
value();
71 return (m_itf == other.m_itf);
77 msg_t req(
con.ctx(), std::ref(*
this));
79 auto& payload = req.get_request().get_payload();
80 payload.sw_if_index = m_itf.
value();
120 auto& payload =
m_dump->get_request().get_payload();
121 payload.sw_if_index = m_itf.
value();
133 return (
"bond-slave-itfs-dump");
std::string to_string() const
convert to string format for debug purposes
vapi::Sw_interface_slave_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.
void to_vpp(vapi_payload_bond_enslave &bond_enslave) const
convert to VPP
const static rc_t OK
The HW write was successfull.
rc_t issue(connection &con)
Issue the command to VPP/HW.
uint32_t value() const
get the value of the handle
A cmd class that detach slave from a bond interface.
A base class for all RPC commands to VPP.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
A cmd class that Dumps slave itfs.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Sw_interface_slave_dump > m_dump
The VAPI event registration.
bool operator==(const unbind_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
#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.
std::string to_string() const
convert to string format for debug purposes
const static rc_t NOOP
The HW write/update action was/has not been attempted.
A type declaration of an interface handle in VPP.
bool operator==(const bind_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
unbind_cmd(HW::item< bool > &item, const handle_t &itf)
Constructor.
vapi::Bond_enslave msg_t
convenient typedef
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
dump_cmd()
Default Constructor.
bind_cmd(HW::item< bool > &item, const handle_t &bond_itf, const bond_member &itf)
Constructor.
Error codes that VPP will return during a HW write.
A command class that binds the slave interface to the bond interface.
rc_t issue(connection &con)
Issue the command to VPP/HW.
const handle_t hdl(void) const
Get the interface handle.