Tunnel configuration

Overview

Definition of TAPI to configure tunnel. More…

// typedefs

typedef enum tapi_cfg_tunnel_type tapi_cfg_tunnel_type;
typedef struct tapi_cfg_tunnel_vxlan tapi_cfg_tunnel_vxlan;
typedef struct tapi_cfg_tunnel tapi_cfg_tunnel;

// enums

enum tapi_cfg_tunnel_type;

// structs

struct tapi_cfg_tunnel;
struct tapi_cfg_tunnel_vxlan;

// global functions

te_errno tapi_cfg_tunnel_add(const char* ta, const tapi_cfg_tunnel* conf);
te_errno tapi_cfg_tunnel_enable(const char* ta, const tapi_cfg_tunnel* conf);
te_errno tapi_cfg_tunnel_disable(const char* ta, const tapi_cfg_tunnel* conf);
te_errno tapi_cfg_tunnel_del(const char* ta, const char* tunnel_name);
te_errno tapi_cfg_tunnel_get(const char* ta, const char* tunnel_name, tapi_cfg_tunnel* conf);

Detailed Documentation

Definition of TAPI to configure tunnel.

Typedefs

typedef enum tapi_cfg_tunnel_type tapi_cfg_tunnel_type

List of supported tunnels

typedef struct tapi_cfg_tunnel tapi_cfg_tunnel

Tunnel configuration

Global Functions

te_errno tapi_cfg_tunnel_add(const char* ta, const tapi_cfg_tunnel* conf)

Add tunnel interface.

Parameters:

ta

Test Agent.

conf

Tunnel configuration.

Returns:

Status code

te_errno tapi_cfg_tunnel_enable(const char* ta, const tapi_cfg_tunnel* conf)

Enable tunnel.

Parameters:

ta

Test Agent.

conf

Tunnel configuration.

Returns:

Status code

te_errno tapi_cfg_tunnel_disable(const char* ta, const tapi_cfg_tunnel* conf)

Disable tunnel.

Parameters:

ta

Test Agent.

conf

Tunnel configuration.

Returns:

Status code

te_errno tapi_cfg_tunnel_del(const char* ta, const char* tunnel_name)

Delete tunnel.

Parameters:

ta

Test Agent.

tunnel_name

Tunnel name.

Returns:

Status code

te_errno tapi_cfg_tunnel_get(const char* ta, const char* tunnel_name, tapi_cfg_tunnel* conf)

Get tunnel configuration information.

Parameters:

ta

Test Agent.

tunnel_name

Tunnel name.

conf

Pointer of tunnel configuration to store.

Returns:

Status code