Network Switch configuration

Overview

// global functions

int tapi_cfg_switch_add_vlan(const char* ta_name, uint16_t vid);
int tapi_cfg_switch_del_vlan(const char* ta_name, uint16_t vid);
int tapi_cfg_switch_vlan_add_port(const char* ta_name, uint16_t vid, unsigned int port);
int tapi_cfg_switch_vlan_del_port(const char* ta_name, uint16_t vid, unsigned int port);

Detailed Documentation

Global Functions

int tapi_cfg_switch_add_vlan(const char* ta_name, uint16_t vid)

Add VLAN on switch.

Parameters:

ta_name

  • name of the test agent

vid

  • VLAN identifier

Returns:

Status code.

int tapi_cfg_switch_del_vlan(const char* ta_name, uint16_t vid)

Delete VLAN from switch.

Parameters:

ta_name

  • name of the test agent

vid

  • VLAN identifier

Returns:

Status code.

int tapi_cfg_switch_vlan_add_port(const char* ta_name, uint16_t vid, unsigned int port)

Add port to VLAN on switch.

Parameters:

ta_name

  • name of the test agent

vid

  • VLAN identifier

port

  • port number

Returns:

Status code.

int tapi_cfg_switch_vlan_del_port(const char* ta_name, uint16_t vid, unsigned int port)

Delete port from VLAN on switch.

Parameters:

ta_name

  • name of the test agent

vid

  • VLAN identifier

port

  • port number

Returns:

Status code.