Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.6.0.3
|
Storm Control is a feature that allows the switch to monitor inbound traffic on a physical interface. Storm Control operates on 3 modes of traffic: Unicast, Multicast and Broadcast. It limits the impacts of traffic storm due to misconfiguration, physical cabling etc.
This document provides a brief description of the Storm Control OpEN APIs. The Storm Control OpEN APIs allows processes outside of the ICOS main process (switchdrvr) access to Storm Control services. It provides the following services:
All 'Set' operations may affect the Switch behavior and configuration.
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.
storm_control_example.c is a sample application that demonstrates the use of the Storm Control OpEN API's. storm_control_example is started from the command line and has the following usage syntax:
Usage: storm_control_example <test#> <arg1> <arg2> ...
It exercises all the Storm Control OpEN APIs with appropriate arguments to manage the Storm Control feature in the ICOS main process (switchdrvr).
CLI Command | OpEN API Reference |
---|---|
(Config)# storm-control {broadcast | unicast | multicast} [rate | level <threshold> | action] | openapiStormControlModeSet() openapiStormControlModeGet() openapiStormControlThresholdSet() openapiStormControlThresholdDefaultSet() openapiStormControlThresholdGet() openapiStormControlActionSet() openapiStormControlActionGet() |
(Interface-Config Mode)# storm-control {broadcast |unicast |multicast} [rate | level <threshold>] | openapiStormControlIntfModeSet() openapiStormControlIntfModeGet() openapiStormControlIntfThresholdSet() openapiStormControlIntfThresholdDefaultSet() openapiStormControlIntfThresholdGet() |