Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
FDB Configuration

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

All 'Set', 'Flush', 'Reset' and 'Delete' operations would affect the Switch behavior and configuration.

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

fdb_example

fdb_example.c is a sample application that demonstrates the use of the FDB Configuration OpEN API. fdb_example is started from the command line and exercises all the FDB Configuration OpEN APIs one by one.

FDB Configuration CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)#
show mac address-table
openapiFdbEntryNextGet()
openapiFdbAddrAgingTimeoutGet()
openapiActiveAddrEntriesGet()
(Config Mode)#
bridge aging-time
openapiFdbAddrAgingTimeoutSet()
(Priv-User Mode)#
show mac address-table count
openapiFdbMaxTableEntriesGet()
openapiFdbDynamicEntriesGet()
openapiFdbInternalEntriesGet()
openapiFdbIntfDynamicEntriesGet()
openapiFdbVlanDynamicEntriesGet()
openapiFdbIntfInternalEntriesGet()
openapiFdbVlanInternalEntriesGet()
(Priv-User Mode)#
show interface
openapiFdbMaxCountGet()
(Priv-User Mode)#
clear mac address-table dynamic
openapiFdbFlushByPort()
openapiFdbFlushByVlan()
openapiFdbFlushByMac()
(Priv-User Mode)#
clear bridge
openapiFdbFlush()