Bridge configuration
Overview
Definition of TAPI to configure bridge. More…
// typedefs typedef enum tapi_cfg_bridge_provider tapi_cfg_bridge_provider; typedef struct tapi_cfg_bridge tapi_cfg_bridge; // enums enum tapi_cfg_bridge_provider; // structs struct tapi_cfg_bridge; // global functions te_errno tapi_cfg_bridge_add(const char* ta, const tapi_cfg_bridge* conf); te_errno tapi_cfg_bridge_del(const char* ta, const char* bridge_name); te_errno tapi_cfg_bridge_get(const char* ta, const char* bridge_name, tapi_cfg_bridge* conf); te_errno tapi_cfg_bridge_port_add(const char* ta, const char* bridge_name, const char* if_name); te_errno tapi_cfg_bridge_port_del(const char* ta, const char* bridge_name, const char* if_name);
Detailed Documentation
Definition of TAPI to configure bridge.
Typedefs
typedef enum tapi_cfg_bridge_provider tapi_cfg_bridge_provider
List of supported bridge providers
typedef struct tapi_cfg_bridge tapi_cfg_bridge
Bridge configuration
Global Functions
te_errno tapi_cfg_bridge_add(const char* ta, const tapi_cfg_bridge* conf)
Add bridge.
Parameters:
ta |
Test Agent. |
conf |
Bridge configuration. |
Returns:
Status code
te_errno tapi_cfg_bridge_del(const char* ta, const char* bridge_name)
Delete bridge.
Parameters:
ta |
Test Agent. |
bridge_name |
Bridge name. |
Returns:
Status code
te_errno tapi_cfg_bridge_get(const char* ta, const char* bridge_name, tapi_cfg_bridge* conf)
Get bridge configuration information.
Parameters:
ta |
Test Agent. |
bridge_name |
Bridge name. |
conf |
Pointer of bridge configuration to store. |
Returns:
Status code
te_errno tapi_cfg_bridge_port_add(const char* ta, const char* bridge_name, const char* if_name)
Add interface in bridge bridge_name
.
Parameters:
ta |
Test Agent. |
bridge_name |
Bridge name. |
if_name |
New bridge interface. |
Returns:
Status code
te_errno tapi_cfg_bridge_port_del(const char* ta, const char* bridge_name, const char* if_name)
Remove interface from bridge bridge_name
.
Parameters:
ta |
Test Agent. |
bridge_name |
Bridge name. |
if_name |
Bridge interface. |
Returns:
Status code