16 #ifndef __VOM_BOND_INTERFACE_H__ 17 #define __VOM_BOND_INTERFACE_H__ 67 mode_t(
int v,
const std::string& s);
101 lb_t(
int v,
const std::string& s);
121 static std::shared_ptr<bond_interface>
find(
const handle_t& hdl);
126 std::shared_ptr<bond_interface>
singular()
const;
170 std::shared_ptr<interface> singular_i()
const;
175 virtual std::queue<cmd*>& mk_create_cmd(std::queue<cmd*>& cmds);
180 virtual std::queue<cmd*>& mk_delete_cmd(std::queue<cmd*>& cmds);
static const mode_t BROADCAST
Broadcast bond interface mode.
A template base class for all enum types.
const handle_t & handle() const
Return VPP's handle to this object.
static const mode_t XOR
XOR bond interface mode.
const l2_address_t & l2_address() const
Return the L2 Address.
A bond interface load balance.
Type def of a L2 address as read from VPP.
static const mode_t LACP
LACP bond interface mode.
const std::string & name() const
Return the interface type.
bond_interface(const std::string &name, admin_state_t state, mode_t mode, lb_t lb=lb_t::UNSPECIFIED)
Construct a new object matching the desried state.
static const mode_t UNSPECIFIED
Unspecified bond interface mode.
vl_api_tunnel_mode_t mode
static const mode_t ACTIVE_BACKUP
Active-backup bond interface mode.
The admin state of the interface.
A representation of an interface in VPP.
static const lb_t L34
L34 bond interface lb.
A type declaration of an interface handle in VPP.
const std::string & to_string() const
convert to string format for debug purposes
static const lb_t UNSPECIFIED
Unspecified bond interface lb.
The interface to writing objects into VPP OM.
std::shared_ptr< bond_interface > singular() const
Return the matching 'singular instance' of the BOND interface.
static const lb_t L23
L23 bond interface lb.
The VPP Object Model (VOM) library.
static const mode_t ROUND_ROBIN
Round-Robin bond interface mode.
vl_api_dhcp_client_state_t state
static std::shared_ptr< bond_interface > find(const handle_t &hdl)
The the singular instance of the bond interface in the DB by handle.
static const mode_t from_numeric_val(uint8_t v)
Convert VPP's value of the bond to a mode.
static const lb_t L2
L2 bond interface lb.