|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
42 , m_l2_address(l2_address)
56 , m_l2_address(o.m_l2_address)
62 std::shared_ptr<bond_interface>
92 bond_interface::mk_create_cmd(std::queue<cmd*>& q)
101 bond_interface::mk_delete_cmd(std::queue<cmd*>& q)
103 q.push(
new bond_interface_cmds::delete_cmd(
m_hdl));
108 std::shared_ptr<bond_interface>
111 return std::dynamic_pointer_cast<bond_interface>(singular_i());
114 std::shared_ptr<interface>
115 bond_interface::singular_i()
const
117 return m_db.find_or_add(
name(), *
this);
159 bond_interface::mode_t::mode_t(
int v,
const std::string& s)
185 bond_interface::lb_t::lb_t(
int v,
const std::string& s)
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
static singular_db< key_t, interface > m_db
A map of all interfaces key against the interface's name.
void set(mode_t mode)
set the mode
HW::item< handle_t > m_hdl
The SW interface handle VPP has asigned to the interface.
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.
virtual std::string to_string(void) const
convert to string format for debug purposes
const static lb_t UNSPECIFIED
Unspecified bond interface lb.
const static mode_t XOR
XOR bond interface mode.
A functor class that creates an interface.
virtual void sweep(void)
Sweep/reap the object if still stale.
A template base class for all enum types.
A representation of an interface in VPP.
void set(const admin_state_t &state)
Set the admin state of the interface.
A type declaration of an interface handle in VPP.
const static mode_t ACTIVE_BACKUP
Active-backup bond interface mode.
const std::string & to_string() const
convert to string format for debug purposes
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.
void release()
release/remove an interface form the singular store
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 std::shared_ptr< interface > find(const handle_t &h)
The the singular instance of the interface in the DB by handle.