Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
dot1as API

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

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

dot1as_example

dot1as_example.c is a sample application that demonstrates the use of OpEN's dot1as APIs. dot1as_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

dot1as CLI/API Cross Reference

CLI Command OpEN API Reference
show dot1as summary openapiDot1asModeGet()
openapiDot1asIsGrandmasterPresentGet()
openapiDot1asGrandmasterCapableGet()
openapiDot1asBestClkIdGet()
openapiDot1asBestClkPriorityGet()
openapiDot1asBestClkStepsGet()
openapiDot1asBridgeClkIdGet()
openapiDot1asBridgePriorityGet()
openapiDot1asGrandmasterChangeCountGet()
show dot1as interface summary openapiDot1asIntfModeGet()
openapiDot1asIntfIsCapableGet()
openapiDot1asIntfIsMeasuringPdelayGet()
openapiDot1asIntfPdelayGet()
openapiDot1asIntfRoleGet()

show dot1as interface <intf> | openapiDot1asIntfPdelayThresholdGet()
openapiDot1asIntfPdelayThresholdSet()
openapiDot1asIntfAllowedLostRespGet()
openapiDot1asIntfNeighborRateRatioGet()
openapiDot1asIntfIntervalGet() show dot1as statistics <intf_num> | openapiDot1asIntfStatsGet()

dot1as | openapiDot1asModeSet()
openapiDot1asIntfModeSet() dot1as priority | openapiDot1asBridgeProritySet() dot1as interval announce | openapiDot1asIntfIntervalSet() dot1as interval sync | openapiDot1asIntfIntervalSet() dot1as interval pdelay | openapiDot1asIntfIntervalSet() dot1as timeout announce | openapiDot1asIntfIntervalSet() dot1as timeout sync | openapiDot1asIntfIntervalSet() dot1as timeout pdelay | openapiDot1asIntfIntervalSet() dot1as pdelaythreshhold | openapiDot1asIntfPdelayThresholdSet() dot1as allowedLostResp | openapiDot1asIntfAllowedLostRespSet() clear dot1as statistics | openapiDot1asIntfStatsReset()