|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.9.0.2
|
This document provides a brief description of the DHCP Server OpEN APIs. It provides the following services:
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.
dhcp_server_example.c is a sample application that demonstrates the use of OpEN's DHCP Server APIs. dhcp_server_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.
It exercises all the DHCP Server OpEN APIs with appropriate arguments to manage the DHCP-Server component in the EFOS main process (switchdrvr).
CLI Command | OpEN API Reference ---------— | ---------------— (Priv-User Mode)##
show ip dhcp pool configuration all | openapiDhcpServerPoolEntryFirstGet() | openapiDhcpServerPoolEntryNextGet (Priv-User Mode)##
show ip dhcp binding all | openapiDhcpServerLeaseEntryFirstGet
openapiDhcpServerLeaseEntryNextGet()
openapiDhcpServerLeaseDataGet() (Priv-User Mode)##
show ip dhcp binding vrf <vrf-name> <ipaddress> | openapiDhcpServerVrfIpAddrLeaseDataGet() (Priv-User Mode)##
show ip dhcp server statistics | openapiDhcpServerStatGet() (Priv-User Mode)##
show ip dhcp pool configuration <pool-name> | openapiDhcpServerPoolVrfNameGet()
openapiDhcpServerPoolTypeGet() (Config-dhcp-pool)##
vrf <vrf-name> | openapiDhcpServerPoolVrfNameSet() (Config-dhcp-pool)##
no vrf | openapiDhcpServerPoolVrfNameSetToDefaultVrf() (Priv-User Mode)##
show ip dhcp global configuration | openapiDhcpServerExcludedAddressRangeEntryFirstGet()
openapiDhcpServerExcludedAddressRangeEntryNextGet() (Config)##
ip dhcp excluded-address vrf <vrf-name> <low-address> <high-address> | openapiDhcpServerExcludedAddressRangeAdd() (Config)##
no ip dhcp excluded-address vrf <vrf-name> <low-address> <high-address> | openapiDhcpServerExcludedAddressRangeDelete() (Priv-User Mode)##
openapiDhcpServerVrfIpAddrLeaseDataGet() (Priv-User Mode)##
clear ip dhcp binding vrf <vrf-name> <ipaddress> | openapiDhcpServerVrfIpAddrLeaseDataClear() (Priv-User Mode)##
clear ip dhcp binding pool <pool-name> | <ipaddress> | openapiDhcpServerPoolIpAddrLeaseDataClear() (Priv-User Mode)##
clear ip dhcp binding vrf <vrf-name> | openapiDhcpServerVrfLeaseDataClear() (Priv-User Mode)##
clear ip dhcp binding pool <pool-name> | openapiDhcpServerPoolLeaseDataClear() (Priv-User Mode)##
clear ip dhcp binding * | openapiDhcpServerAllLeaseDataClear()