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

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

Example C Application cos_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.

cos_example

cos_example.c is a sample application that demonstrates the use of OpEN's cos APIs. cos_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

cos CLI/API Cross Reference

CLI Command OpEN API Reference
(localhost)(Config)#
classofservice trust {dot1p | ip-dscp | untrusted}
openapiQosCosMapGlobalTrustModeSet()
#
show classofservice trust
openapiQosCosMapGlobalTrustModeGet()
(Interface-Config Mode)#
classofservice trust {dot1p | ip-dscp | untrusted}
openapiQosCosMapInterfaceTrustModeSet()
#
show classofservice trust <slot/port>
openapiQosCosMapInterfaceTrustModeGet()
(localhost)(Config)#
cos-queue min-bandwidth <bw>
openapiQosCosQueueMinBandwidthSet()
(localhost)(Config)#
[no] cos-queue strict <queue-id>
openapiQosCosQueueSchedulerTypeSet()
#
show interfaces cos-queue {<cr> | <slot/port>}
openapiQosCosQueueIdIndexGet()
openapiQosCosQueueIdIndexGetNext()
openapiQosCosQueueMinBandwidthListGet()
openapiQosCosQueueSchedulerTypeListGet()
openapiQosCosQueueMgmtTypeListGet()
(localhost)(Config)#
classofservice dot1p-mapping <priority> <trafficClass>
openapiQosCosDot1dTrafficClassSet()
#
show classofservice dot1p-mapping {<cr> | <slot/port>}
openapiQosCosDot1dTrafficClassGet()
openapiQosCosDot1dTrafficClassEntryGet()
openapiQosCosDot1dTrafficClassEntryNextGet()
(localhost)(Config)#
[no] classofservice ip-dscp-mapping <ipdscp> <trafficClass>
openapiQosCosMapIpDscpTrafficClassSet()
openapiQosCosMapIpDscpDefaultTrafficClassGet()
#
show classofservice ip-dscp-mapping
openapiQosCosMapIpDscpIndexGet()
openapiQosCosMapIpDscpIndexGetNext()
openapiQosCosMapIpDscpTrafficClassGet()