Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
VoiceVlan API

This document provides a brief description of the VoiceVlan OpEN APIs. It provides the following services:

Example C Application voice_vlan_example

Initialization

In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.

voice_vlan_example

voice_vlan_example.c is a sample application that demonstrates the use of OpEN's VoiceVlan APIs. voice_vlan_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.

Sample Output

VoiceVlan CLI/API Cross Reference

CLI Command OpEN API Reference
(Config)#
[no] voice vlan
openapiVoiceVlanAdminModeSet()
(Priv-User Mode)#
show voice vlan
openapiVoiceVlanAdminModeGet()
(Interface-Config Mode)#
voice vlan {dot1p | <VLAN ID> | none | untagged}
openapiVoiceVlanPortAdminModeSet()
(Priv-User Mode)#
show voice vlan interface <slot/port>
openapiVoiceVlanPortAdminModeGet()
openapiVoiceVlanPortVlanIdGet()
openapiVoiceVlanPortDot1pPriorityGet()
openapiVoiceVlanPortCosOverrideModeGet()
openapiVoiceVlanPortAuthStateGet()
openapiVoiceVlanPortDscpGet()
openapiVoiceVlanPortStatusGet()
(Interface-Config Mode)#
voice vlan data priority {trust | untrust}
openapiVoiceVlanPortCosOverrideModeSet()
(Interface-Config Mode)#
voice vlan auth {enable | disable}
openapiVoiceVlanPortAuthStateSet()

(Interface-Config Mode)#
voice vlan dscp

openapiVoiceVlanPortDscpSet()

(Interface-Config Mode)#
voice vlan dot1p

openapiVoiceVlanPortDot1pPrioritySet()
(Interface-Config Mode)#
voice vlan <id>
openapiVoiceVlanPortVlanIdSet()