|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_BOND_MEMBER_H__
17 #define __VOM_BOND_MEMBER_H__
20 #include <vapi/bond.api.vapi.hpp>
89 void to_vpp(vapi_payload_bond_enslave& bond_enslave)
const;
125 const std::shared_ptr<interface> m_itf;
The VPP Object Model (VOM) library.
void to_vpp(vapi_payload_bond_enslave &bond_enslave) const
convert to VPP
std::string to_string(void) const
convert to string
const static mode_t PASSIVE
Passive member interface mode.
static const rate_t from_numeric_val(uint8_t v)
Convert VPP's value of the bond to a mode.
vl_api_tunnel_mode_t mode
bool operator==(const bond_member &i) const
equality operator
const static rate_t SLOW
SLOW member interface rate.
void set(mode_t mode)
set the mode
bool operator<(const bond_member &mem_itf) const
less-than operator
bond_member(const interface &itf, mode_t mode, rate_t rate)
Construct a new object matching the desried state.
A template base class for all enum types.
A representation of an interface in VPP.
A type declaration of an interface handle in VPP.
const static mode_t ACTIVE
Active member interface mode.
static const mode_t from_numeric_val(uint8_t v)
Convert VPP's value of the bond to a mode.
const static rate_t FAST
Fast member interface rate.
const handle_t hdl(void) const
Get the interface handle.