16 #ifndef __VOM_BOND_MEMBER_H__ 17 #define __VOM_BOND_MEMBER_H__ 20 #include <vapi/bond.api.vapi.hpp> 52 mode_t(
int v,
const std::string& s);
78 rate_t(
int v,
const std::string& s);
125 const std::shared_ptr<interface> m_itf;
static const rate_t SLOW
SLOW member interface rate.
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.
void bond_enslave(vlib_main_t *vm, bond_enslave_args_t *args)
bool operator<(const bond_member &mem_itf) const
less-than operator
static const rate_t FAST
Fast member interface rate.
static const mode_t ACTIVE
Active member interface mode.
static const mode_t PASSIVE
Passive member interface mode.
static const mode_t from_numeric_val(uint8_t v)
Convert VPP's value of the bond to a mode.
bool operator==(const enum_base &e) const
Comparison operator.
A representation of an interface in VPP.
void to_vpp(vapi_payload_bond_enslave &bond_enslave) const
convert to VPP
A type declaration of an interface handle in VPP.
vl_api_vxlan_gbp_api_tunnel_mode_t mode
The VPP Object Model (VOM) library.
const std::string & to_string() const
convert to string format for debug purposes
const handle_t hdl(void) const
Get the interface handle.