Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
diffServ_service API

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

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

diffserv_service_example

diffserv_service_example.c is a sample application that demonstrates the use of OpEN's diffServ service APIs. diffserv_service_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

diffServ service CLI/API Cross Reference

CLI Command OpEN API Reference
(localhost)(Config)#
[no] service-policy [in | out] <policy-map-name>
openapiDiffServServiceCreate()
openapiDiffServServiceDelete()
openapiDiffServServicePolicyIndexSet()
openapiDiffServIsAclIntfInUse()
openapiDiffServServiceRowStatusVerify()
#
show diffserv service brief
openapiDiffServServiceGet()
openapiDiffServServiceGetNext()
openapiDiffServServicePolicyIndexGet()
openapiDiffServServiceIfOperStatusGet()
#
show policy-map interface <slot/port> in
openapiDiffServPolicyPerfInDiscardedPacketsGet()
openapiDiffServPolicyPerfInOfferedPacketsGet()
#
show policy-map interface <slot/port> out
openapiDiffServPolicyPerfOutDiscardedPacketsGet()
openapiDiffServPolicyPerfOutOfferedPacketsGet()