Bonding and bridging configuration
Overview
Definition of API to configure linux trunks (IEEE 802.3ad) and bridges. More…
// global functions int tapi_cfg_aggr_create_bond(const char* ta, const char* name, char** ifname, const char* type); int tapi_cfg_aggr_destroy_bond(const char* ta, const char* name); int tapi_cfg_aggr_bond_enslave(const char* ta, const char* name, const char* slave_if); int tapi_cfg_aggr_bond_free_slave(const char* ta, const char* name, const char* slave_if);
Detailed Documentation
Definition of API to configure linux trunks (IEEE 802.3ad) and bridges.
Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.
Global Functions
int tapi_cfg_aggr_create_bond(const char* ta, const char* name, char** ifname, const char* type)
Create bondN interface.
Parameters:
ta |
Test Agent name |
name |
Name of aggregation node |
ifname |
Where to place the name of created interface |
type |
Typy of team or bonding |
Returns:
Status code
int tapi_cfg_aggr_destroy_bond(const char* ta, const char* name)
Destroy bondN interface.
Parameters:
ta |
Test Agent name |
name |
Name of aggregation node |
Returns:
Status code
int tapi_cfg_aggr_bond_enslave(const char* ta, const char* name, const char* slave_if)
Add a slave interface to a bondN interface.
Parameters:
ta |
Test Agent name |
name |
Name of aggregation node |
slave_if |
Name of interface to be enslaved |
Returns:
Status code
int tapi_cfg_aggr_bond_free_slave(const char* ta, const char* name, const char* slave_if)
Release a slave interface from a bondN interface.
Parameters:
ta |
Test Agent name |
name |
Name of aggregation node |
slave_if |
Name of interface to be freed |
Returns:
Status code