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

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

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

static_filter_example

static_filter_example.c is a sample application that demonstrates the use of OpEN's Static Filter APIs. static_filter_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

Static Filter CLI/API Cross Reference

CLI Command OpEN API Reference
(Config)#
[no] macfilter <macaddr> <vlan-id>
openapiFilterCreate()
openapiFilterRemove()
openapiFilterFlowIdGet()
openapiFilterFlowTypeGet()
openapiFilterFlowTypeIdSet()
(Config)#
[no] macfilter addsrc all <macaddr> <vlan-id>
openapiFilterSrcIntfListModify()
(Interface-Config Mode)#
macfilter addsrc <macaddr> <vlan-id>
openapiFilterSrcIntfAdd()
openapiFilterSrcIntfDelete()
(Interface-Config Mode)#
macfilter adddest <macaddr> <vlan-id>
openapiFilterDstIntfAdd()
openapiFilterDstIntfDelete()
(Priv-User Mode)#
show mac-address-table static all
openapiFilterFirstGet()
openapiFilterNextGet()
openapiFilterSrcIntfListGet()
openapiFilterDstIntfListGet()
openapiFilterStreamGet()
(Config)#
[no] macfilter <macaddr> <vlan-id> dot1qci-stream-id <streamId>
openapiFilterStreamSet()