|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.11.1.2
|
This document provides a brief description of the GARP OpEN APIs. It provides the following services:
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.
garp_example.c is a sample application that demonstrates the use of OpEN's GARP APIs. garp_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.
| CLI Command | OpEN API Reference |
|---|---|
| (Privileged exec Mode)# set gmrp adminmode | openapiGarpGmrpEnableSet() |
| (Privileged exec Mode)# set gvrp adminmode | openapiGarpGvrpEnableSet() |
| (Privileged exec Mode)# no set gmrp adminmode | openapiGarpGmrpEnableSet() |
| (Privileged exec Mode)# no set gvrp adminmode | openapiGarpGvrpEnableSet() |
| (Priv-User Mode)# show garp | openapiGarpGmrpEnableGet() openapiGarpGvrpEnableGet() |
| (Interface Mode)# set gmrp interfacemode | openapiGarpGmrpPortEnableSet() |
| (Interface Mode)# set gvrp interfacemode | openapiGarpGvrpPortEnableSet() |
| (Interface Mode)# set garp timer join <joinTime> | openapiGarpJoinTimeSet() |
| (Interface Mode)# set garp timer leave <leaveTime> | openapiGarpLeaveTimeSet() |
| (Interface Mode)# set garp timer leaveall <leaveAllTime> | openapiGarpLeaveAllTimeSet() |
| (Interface Mode)# no set gmrp interfacemode | openapiGarpGmrpPortEnableSet() |
| (Interface Mode)# no set gvrp interfacemode | openapiGarpGvrpPortEnableSet() |
| (Interface Mode)# no set garp timer join | openapiGarpJoinTimeSet() |
| (Interface Mode)# no set garp timer leave | openapiGarpLeaveTimeSet() |
| (Interface Mode)# no set garp timer leaveall | openapiGarpLeaveAllTimeSet() |
| (Priv-User Mode)# show gmrp configuration {all | <interface-id>} | openapiGarpGmrpPortEnableGet() openapiGarpJoinTimeGet() openapiGarpLeaveTimeGet() openapiGarpLeaveAllTimeGet() |
| (Priv-User Mode)# show gvrp configuration {all | <interface-id>} | openapiGarpGvrpPortEnableGet() openapiGarpJoinTimeGet() openapiGarpLeaveTimeGet() openapiGarpLeaveAllTimeGet() |