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

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

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

mvr_example

mvr_example.c is a sample application that demonstrates the use of OpEN's MVR APIs. mvr_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

MVR CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)#
show mvr
openapiMvrAdminModeGet()
openapiMvrQueryTimeGet()
openapiMvrModeTypeGet()
openapiMvrModeTypeGet()
openapiMvrMulticastVlanGet()
openapiMvrGroupNumGet()
(Config)#
[no] mvr
openapiMvrAdminModeSet()
(Config)#
[no] mvr querytime <query time>
openapiMvrQueryTimeSet()
(Config)#
[no] mvr mode {compatible | dynamic}
openapiMvrModeTypeSet()
(Config)#
[no] mvr vlan <vlanId>
openapiMvrMulticastVlanSet()
(Interface-Config Mode)#
[no] mvr
openapiMvrIntfModeSet()
(Priv-User Mode)#
show mvr interface
openapiMvrIntfMvrTypeGet()
(Interface-Config Mode)#
[no] mvr type {receiver | source}
openapiMvrIntfMvrTypeSet()
(Priv-User Mode)#
show mvr interface <slot/port>
openapiMvrIntfImmediateModeGet()
(Interface-Config Mode)#
[no] mvr immediate
openapiMvrIntfImmediateModeSet()
(Config)#
mvr group <A.B.C.D>
openapiMvrGroupIpAdd()
(Config)#
[no] mvr group <A.B.C.D>
openapiMvrGroupIpDelete()
(Interface-Config Mode)#
mvr vlan <multicast VLAN> group <A.B.C.D>
openapiMvrIntfGroupIpAdd()
(Interface-Config Mode)#
[no] mvr vlan <multicast VLAN> group <A.B.C.D>
openapiMvrIntfGroupIpDelete()
(Priv-User Mode)#
show mvr members
openapiMvrEntryGetNext()
openapiMvrIntfGroupGetNext()
openapiMvrGroupStatusGet()
openapiMvrGroupIdGet()
(Priv-User Mode)#
show mvr interface
openapiMvrGroupIpGet()
openapiMvrIntfGetNext()
openapiMvrIntfGroupIdGetNext()
(Priv-User Mode)#
show mvr interface <slot/port>
openapiMvrIntfEntryTypeGet()
(Priv-User Mode)#
show mvr traffic
openapiMvrPduCounterGet()