Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
IpHelper API

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

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

iphelper_example

iphelper_example.c is a sample application that demonstrates the use of OpEN's IpHelper APIs. iphelper_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

IpHelper CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)##
show ip dhcp relay interface [vlan <vlan-id>]
openapiBootpDhcpRelayrtrCIDOptionModeGet()
(Config-interface-mode)##
ip dhcp relay information option-insert [none]
openapiBootpDhcpRelayrtrCIDOptionModeSet()
(Priv-User Mode)##
show ip dhcp relay interface [vlan <vlan-id>]
openapiBootpDhcpRelayrtrCIDOptionCheckModeGet()
(Priv-User Mode)##
clear ip helper statistics [vrf <vrf-name>]
openapiIpHelperStatisticsClear()
(Priv-User Mode)##
show ip helper-address statistics [vrf <vrf-name>]
openapiIpHelperStatisticsGet()
(Priv-User Mode)##
show ip dhcp relay [vrf <vrf-name>]
openapiBootpDhcpRelayCIDOptionCheckModeGet()
(Global-config Mode)##
ip helper enable
openapiIpHelperAdminModeSet()
(Global-config Mode)##
bootpdhcprelay cidoptmode
openapiBootpDhcpRelayCircuitIdOptionModeSet()
(Global-config Mode)##
ip dhcp relay information check
openapiBootpDhcpRelayCIDOptionCheckModeSet()
(Global-config Mode)##
ip dhcp relay information check-reply [none]
openapiBootpDhcpRelayrtrCIDOptionCheckModeSet()
(Global-config Mode)##
bootpdhcprelay maxhopcount <1-16>
openapiBootpDhcpRelayMaxHopCountSet()
(Global-config Mode)##
bootpdhcprelay minwaittime <0-100>
openapiBootpDhcpRelayMinWaitTimeSet()

(Global-config Mode)##
bootpdhcprelay source-interface interface {<u/s/p> | vlan <id> | loopback <id>} | openapiBootpDhcpRelaySourceInterfaceSet() (Global-config Mode)##
no bootpdhcprelay source-interface | openapiBootpDhcpRelaySourceInterfaceClear() (Global-config Mode)##
bootpdhcprelay server-override | openapiBootpDhcpRelayServerOverrideModeSet() (Config-interface-mode)##
bootpdhcprelay server-override | openapiBootpDhcpRelayIntfServerOverrideSet() (Config-interface-mode)##
bootpdhcprelay source-interface interface {{<u/s/p> | vlan <id> | loopback <id>} | openapiBootpDhcpRelayIntfSourceInterfaceSet() (Config-interface-mode)##
no bootpdhcprelay source-interface | openapiBootpDhcpRelayIntfSourceInterfaceClear() (Priv-User Mode)##
show bootpdhcprelay | openapiBootpDhcpRelayCircuitIdOptionModeGet() (Priv-User Mode)##
show bootpdhcprelay | openapiBootpDhcpRelayServerOverrideModeGet()
openapiBootpDhcpRelayIntfServerOverrideGet() (Priv-User Mode)##
show bootpdhcprelay | openapiBootpDhcpRelaySourceInterfaceGet()
openapiBootpDhcpRelayIntfSourceInterfaceGet() (Priv-User Mode)##
show bootpdhcprelay | openapiBootpDhcpRelayMaxHopCountGet()
openapiBootpDhcpRelayMinWaitTimeGet()
openapiIpHelperAdminModeGet() (Priv-User Mode)##
show ip helper-address [u/s/p] | openapiIhIpHelperAddressFirst()
openapiIhIpHelperAddressNext() (Global-config Mode)##
no ip helper-address | openapiIpHelperAddressesRemove()