|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
23 : m_itf(itf.singular())
43 bond_enslave.sw_if_index = m_itf->handle().value();
45 bond_enslave.is_long_timeout = (m_rate ==
rate_t::SLOW) ? 1 : 0;
53 s << m_itf->to_string() <<
" mode:" << m_mode.
to_string()
62 return (m_itf->handle() < itf.m_itf->handle());
80 return m_itf->handle();
86 return ((m_itf ==
b.m_itf) && (m_mode ==
b.m_mode) && (m_rate ==
b.m_rate));
101 bond_member::mode_t::mode_t(
int v,
const std::string& s)
118 bond_member::rate_t::rate_t(
int v,
const std::string& s)
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.
const std::string & to_string() const
convert to string format for debug purposes
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.