|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_BOND_INTERFACE_H__
17 #define __VOM_BOND_INTERFACE_H__
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);
const l2_address_t & l2_address() const
Return the L2 Address.
const static lb_t L23
L23 bond interface lb.
const static mode_t BROADCAST
Broadcast bond interface mode.
The VPP Object Model (VOM) library.
virtual std::string to_string() const
convert to string
The interface to writing objects into VPP OM.
void set(mode_t mode)
set the mode
vl_api_tunnel_mode_t mode
const static mode_t LACP
LACP bond interface mode.
vl_api_dhcp_client_state_t state
A bond interface load balance.
const std::string & name() const
Return the interface type.
const static lb_t L34
L34 bond interface lb.
static const lb_t from_numeric_val(uint8_t v)
Convert VPP's value of the bond to a lb.
const static lb_t UNSPECIFIED
Unspecified bond interface lb.
const static mode_t XOR
XOR bond interface mode.
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_BACKUP
Active-backup bond interface mode.
const handle_t & handle() const
Return VPP's handle to this object.
const static lb_t L2
L2 bond interface lb.
Type def of a L2 address as read from VPP.
The admin state of the interface.
const static mode_t UNSPECIFIED
Unspecified bond interface mode.
const static mode_t ROUND_ROBIN
Round-Robin bond interface mode.
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.
std::shared_ptr< bond_interface > singular() const
Return the matching 'singular instance' of the BOND interface.
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.