OpenNSL API Guide and Reference Manual
VLAN Configuration

Overview

The VLAN API provides the capability to manage VLAN definitions within the network switch. Each VLAN associates an integer identifier with a group of ports which should be treated as a broadcast domain. The port membership definitions are defined as a bitmap of ports. The VLAN management API provides full access to the bitmaps associated with each VLAN.

The VLAN management API covers programming of:

Basic VLAN configuration allows for the creation and destruction of 802.1Q VLAN definitions. This allows for binding an 802.1Q VLAN ID to a set of ports and managing the member ports. The VLAN module maintains consistency between trunking, VLAN configuration and port-based VLAN configuration.

Port-Based (or Native) VLAN configuration defines the VLAN ID that will get assigned to untagged (Ethernet-II) frames as they enter the switch fabric via the ingress port. These packets may or may not exit with the tag depending on the configuration of that VLAN.

Spanning Tree Groups may be implemented by some systems that allow for a spanning tree to be enabled per VLAN. Using the VLAN API, developers can manage spanning tree groups across VLAN definitions. Additional management of multiple spanning tree groups is performed by the STG API.