beautypg.com

Adlink_vlan_admin_status_set (), Adlink_vlan_create (), Adlink_vlan_destroy () – ADLINK aTCA-N700 User Manual

Page 16

background image

Switch Manager API Programming Guide

16

adlink_vlan_admin_status_set ()

PROTOTYPE

status_t adlink_vlan_admin_status_set (int vlan, int status);

DESCRIPTION

This function is used to switch admin status of a VLAN. VLAN can be configured but not used.

To use created VLANs, set them ENABLE.

PARAMETERS

vlan

[IN] The VLAN ID to be configured;

status

[IN] Admin status. Use ‘ENABLE’ or ‘DISABLE’;

RETURN

See the description of status_t in Section 1.

adlink_vlan_create ()

PROTOTYPE

status_t adlink_vlan_create (int vlan, char*name);

DESCRIPTION

This function is used to create a new VLAN.

PARAMETERS

vlan

[IN] The VLAN ID to be created;

name

[IN] Description for new created VLAN;

RETURN

See the description of status_t in Section 1.

adlink_vlan_destroy ()

PROTOTYPE

status_t adlink_vlan_destroy (int vlan);

DESCRIPTION

This function is used to destroy an existing VLAN.