Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
LoopProtect API

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

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

loop_protect_example

loop_protect_example.c is a sample application that demonstrates the use of LoopProtect OpEN APIs. loop_protect_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

LoopProtect CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)#
show keepalive
openapiLoopProtectAdminModeGet()
openapiLoopProtectTxTimerGet()
openapiLoopProtectMaxPduReceiveGet()
openapiLoopProtectIsValidIntf()
(Priv-User Mode)#
show keepalive detail all
openapiLoopProtectDisableTimerGet()
openapiLoopProtectPortAdminModeGet()
openapiLoopProtectPortActionGet()
openapiLoopProtectPortActionGet()
(Config)#
[no] keepalive
openapiLoopProtectAdminModeSet()
(Config)#
[no] keepalive <value>
openapiLoopProtectTxTimerSet()
(Config)#
[no] keepalive <transmit-timer> <max-pdu-value>
openapiLoopProtectMaxPduReceiveSet()
(Config)#
[no] keepalive disable-timer <value>
openapiLoopProtectDisableTimerSet()
(Interface-Config Mode)#
[no] keepalive
openapiLoopProtectPortAdminModeSet()
(Interface-Config Mode)#
[no] keepalive tag dot1q <vlan-id>
openapiLoopProtectPortActionSet()
(Interface-Config Mode)#
[no] keepalive action <both | disable | log>
openapiLoopProtectPortActionSet()
(Privileged exec Mode)#
clear counters
openapiLoopProtectAllStatsClear()
(Privileged exec Mode)#
clear counters < slot\/port>
openapiLoopProtectPortStatsClear()
(Priv-User Mode)#
show keepalive statistics all
openapiLoopProtectPortloopDetectCountGet()
openapiLoopProtectIsLoopDetected()
openapiLoopProtectPortTimeSinceLastLoopGet()