Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
Data Structures | Macros | Enumerations | Functions
DHCP Server API [OPENAPI_DHCP_SERVER]
API Definitions

Data Structures

struct  OPEN_DHCP_SERVER_CLIENT_ID_t
 DHCP client ID. More...
 
struct  OPEN_DHCP_SERVER_POOL_NAME_t
 DHCP Pool name. More...
 
struct  OPEN_DHCP_SERVER_POOL_VRF_NAME_t
 DHCP Pool's VRF-name. More...
 

Macros

#define OPEN_DHCP_SERVER_CLIENT_ID_MAXLEN   256 /** Maximum client ID, includes terminating '\0' */
 
#define OPEN_DHCP_SERVER_POOL_NAME_MAXLEN   32 /** Maximum pool name, includes terminating '\0' */
 
#define OPEN_DHCP_SERVER_POOL_VRF_NAME_MAXLEN   65 /** Maximum VRF name, includes terminating '\0' */
 

Enumerations

enum  OPEN_DHCP_SERVER_LEASE_STATE_t {
  OPEN_DHCP_SERVER_FREE_LEASE = 0, OPEN_DHCP_SERVER_ACTIVE_LEASE = 1, OPEN_DHCP_SERVER_OFFERED_LEASE = 2, OPEN_DHCP_SERVER_EXPIRED_LEASE = 3,
  OPEN_DHCP_SERVER_ABANDONED_LEASE = 4
}
 DHCP server lease states. More...
 
enum  OPEN_DHCP_SERVER_POOL_TYPE_t { OPEN_DHCP_SERVER_POOL_TYPE_INACTIVE = 0, OPEN_DHCP_SERVER_POOL_TYPE_DYNAMIC = 1, OPEN_DHCP_SERVER_POOL_TYPE_MANUAL = 2 }
 Pool types. More...
 
enum  OPEN_DHCPS_STAT_ID_t {
  OPEN_DHCPS_STAT_ID_RESERVED = 0, OPEN_DHCPS_STAT_ID_ACTIVE_LEASES = 1, OPEN_DHCPS_STAT_ID_EXPIRED_LEASES = 2, OPEN_DHCPS_STAT_ID_MALFORMED_MSGS = 3,
  OPEN_DHCPS_STAT_ID_DISCOVER_DROPPED = 4, OPEN_DHCPS_STAT_ID_RX_DISCOVER = 5, OPEN_DHCPS_STAT_ID_RX_REQUEST = 6, OPEN_DHCPS_STAT_ID_RX_DECLINE = 7,
  OPEN_DHCPS_STAT_ID_RX_RELEASE = 8, OPEN_DHCPS_STAT_ID_RX_INFORM = 9, OPEN_DHCPS_STAT_ID_TX_OFFER = 10, OPEN_DHCPS_STAT_ID_TX_ACK = 11,
  OPEN_DHCPS_STAT_ID_TX_NACK = 12, OPEN_DHCPS_STAT_ID_LAST
}
 DHCP Server Statistic IDs. More...
 

Functions

open_error_t openapiDhcpServerAllLeaseDataClear (openapiClientHandle_t *client_handle)
 Clear all lease data across all VRFs.
 
open_error_t openapiDhcpServerExcludedAddressRangeAdd (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName, open_inet_addr_t *lowIpAddr, open_inet_addr_t *highIpAddr)
 Add an excluded-address range for a given VRF instance.
 
open_error_t openapiDhcpServerExcludedAddressRangeDelete (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName, open_inet_addr_t *lowIpAddr, open_inet_addr_t *highIpAddr)
 Delete an excluded-address range for a given VRF instance.
 
open_error_t openapiDhcpServerExcludedAddressRangeEntryFirstGet (openapiClientHandle_t *client_handle, uint32_t *pRangeIndex, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName, open_inet_addr_t *startIpAddr, open_inet_addr_t *endIpAddr)
 Get the first DHCP server excluded IP address range entry.
 
open_error_t openapiDhcpServerExcludedAddressRangeEntryNextGet (openapiClientHandle_t *client_handle, uint32_t *pRangeIndex, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName, open_inet_addr_t *startIpAddr, open_inet_addr_t *endIpAddr)
 Get the next DHCP server excluded IP address range entry.
 
open_error_t openapiDhcpServerLeaseDataGet (openapiClientHandle_t *client_handle, open_inet_addr_t *ipaddr, uint32_t *mask, open_buffdesc *hwaddr, OPEN_DHCP_SERVER_CLIENT_ID_t *clientId, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, uint32_t *remaining)
 Get the DHCP Server Lease Data.
 
open_error_t openapiDhcpServerLeaseEntryFirstGet (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, uint32_t *leaseIndex, open_inet_addr_t *ipaddr, OPEN_DHCP_SERVER_LEASE_STATE_t *state)
 Get the first DHCP Server Lease Entry.
 
open_error_t openapiDhcpServerLeaseEntryNextGet (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, uint32_t *leaseIndex, open_inet_addr_t *ipaddr, OPEN_DHCP_SERVER_LEASE_STATE_t *state)
 Get the next DHCP Server Lease Entry.
 
open_error_t openapiDhcpServerPoolEntryFirstGet (openapiClientHandle_t *client_handle, uint32_t *poolIndex, OPEN_DHCP_SERVER_POOL_NAME_t *poolName)
 Get the first DHCP Server Pool Entry.
 
open_error_t openapiDhcpServerPoolEntryNextGet (openapiClientHandle_t *client_handle, uint32_t *poolIndex, OPEN_DHCP_SERVER_POOL_NAME_t *poolName)
 Get the next DHCP Server Pool Entry.
 
open_error_t openapiDhcpServerPoolIpAddrLeaseDataClear (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, open_inet_addr_t *ipaddr)
 Clear lease data for pool name and IP address.
 
open_error_t openapiDhcpServerPoolLeaseDataClear (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName)
 Clear all lease data of a pool.
 
open_error_t openapiDhcpServerPoolTypeGet (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, OPEN_DHCP_SERVER_POOL_TYPE_t *type)
 Get the DHCP Server Pool Type.
 
open_error_t openapiDhcpServerPoolVrfNameGet (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName)
 Get the name of the VRF instance of a given DHCP server pool.
 
open_error_t openapiDhcpServerPoolVrfNameSet (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName)
 Set the name of the VRF instance of a given DHCP server pool.
 
open_error_t openapiDhcpServerPoolVrfNameSetToDefaultVrf (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName)
 Set the name of the VRF instance of a given DHCP server pool.
 
open_error_t openapiDhcpServerStatGet (openapiClientHandle_t *client_handle, OPEN_DHCPS_STAT_ID_t id, uint32_t *val)
 Get the specified DHCP Server statistic.
 
open_error_t openapiDhcpServerVrfIpAddrLeaseDataClear (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName, open_inet_addr_t *ipaddr)
 Clear lease data for VRF name and IP address.
 
open_error_t openapiDhcpServerVrfIpAddrLeaseDataGet (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName, open_inet_addr_t *ipaddr, uint32_t *mask, open_buffdesc *hwaddr, OPEN_DHCP_SERVER_CLIENT_ID_t *clientId, OPEN_DHCP_SERVER_POOL_NAME_t *poolName, uint32_t *remaining)
 Get the DHCP server lease data for a given VRF name and IP address.
 
open_error_t openapiDhcpServerVrfLeaseDataClear (openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName)
 Clear all lease data of a VRF instance.
 

Detailed Description

Enumeration Type Documentation

DHCP server lease states.

Enumerator:
OPEN_DHCP_SERVER_FREE_LEASE 

Free.

OPEN_DHCP_SERVER_ACTIVE_LEASE 

Active.

OPEN_DHCP_SERVER_OFFERED_LEASE 

Offered.

OPEN_DHCP_SERVER_EXPIRED_LEASE 

Expired.

OPEN_DHCP_SERVER_ABANDONED_LEASE 

Abandoned.

Definition at line 54 of file openapi_dhcp_server.h.

Pool types.

Enumerator:
OPEN_DHCP_SERVER_POOL_TYPE_INACTIVE 

inactive

OPEN_DHCP_SERVER_POOL_TYPE_DYNAMIC 

dynamic

OPEN_DHCP_SERVER_POOL_TYPE_MANUAL 

manual

Definition at line 46 of file openapi_dhcp_server.h.

DHCP Server Statistic IDs.

Enumerator:
OPEN_DHCPS_STAT_ID_RESERVED 

Reserved (unused).

OPEN_DHCPS_STAT_ID_ACTIVE_LEASES 

Active leases.

OPEN_DHCPS_STAT_ID_EXPIRED_LEASES 

Expired leases.

OPEN_DHCPS_STAT_ID_MALFORMED_MSGS 

Malformed messages.

OPEN_DHCPS_STAT_ID_DISCOVER_DROPPED 

Discover messages dropped.

OPEN_DHCPS_STAT_ID_RX_DISCOVER 

Discover messages received.

OPEN_DHCPS_STAT_ID_RX_REQUEST 

Request messages received.

OPEN_DHCPS_STAT_ID_RX_DECLINE 

Decline messages received.

OPEN_DHCPS_STAT_ID_RX_RELEASE 

Release messages received.

OPEN_DHCPS_STAT_ID_RX_INFORM 

Inform messages received.

OPEN_DHCPS_STAT_ID_TX_OFFER 

Offer messages sent.

OPEN_DHCPS_STAT_ID_TX_ACK 

Ack messages sent.

OPEN_DHCPS_STAT_ID_TX_NACK 

Nack messages sent.

OPEN_DHCPS_STAT_ID_LAST 

Must be last (bounds checking).

Definition at line 87 of file openapi_dhcp_server.h.

Function Documentation

open_error_t openapiDhcpServerAllLeaseDataClear ( openapiClientHandle_t client_handle)

Clear all lease data across all VRFs.

Parameters
[in]client_handleClient handle from registration API
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerExcludedAddressRangeAdd ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName,
open_inet_addr_t lowIpAddr,
open_inet_addr_t highIpAddr 
)

Add an excluded-address range for a given VRF instance.

Parameters
[in]client_handleClient handle from registration API
[in]vrfNameVRF instance name
[in]lowIpAddrStart IPv4 address of the address range
[in]highIpAddrEnd IPv4 address of the address range
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif add operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerExcludedAddressRangeDelete ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName,
open_inet_addr_t lowIpAddr,
open_inet_addr_t highIpAddr 
)

Delete an excluded-address range for a given VRF instance.

Parameters
[in]client_handleClient handle from registration API
[in]vrfNameVRF instance name
[in]lowIpAddrStart IPv4 address of the address range
[in]highIpAddrEnd IPv4 address of the address range
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif delete operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerExcludedAddressRangeEntryFirstGet ( openapiClientHandle_t client_handle,
uint32_t *  pRangeIndex,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName,
open_inet_addr_t startIpAddr,
open_inet_addr_t endIpAddr 
)

Get the first DHCP server excluded IP address range entry.

Parameters
[in]client_handleClient handle from registration API
[in]pRangeIndexIndex to get first entry
[out]vrfNameName of VRF instance in which IP addresses are configured to be excluded
[out]startIpAddrStarting IP address of range
[out]endIpAddrEnding IP address of range
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure or no entry found found.
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerExcludedAddressRangeEntryNextGet ( openapiClientHandle_t client_handle,
uint32_t *  pRangeIndex,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName,
open_inet_addr_t startIpAddr,
open_inet_addr_t endIpAddr 
)

Get the next DHCP server excluded IP address range entry.

Parameters
[in]client_handleClient handle from registration API
[in]pRangeIndexIndex to get next entry
[out]vrfNameName of VRF instance in which IP addresses are configured to be excluded
[out]startIpAddrStarting IP address of range
[out]endIpAddrEnding IP address of range
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_NOT_FOUNDif no entry found
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerLeaseDataGet ( openapiClientHandle_t client_handle,
open_inet_addr_t ipaddr,
uint32_t *  mask,
open_buffdesc hwaddr,
OPEN_DHCP_SERVER_CLIENT_ID_t clientId,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
uint32_t *  remaining 
)

Get the DHCP Server Lease Data.

Parameters
[in]client_handleClient handle from registration API
[in]ipaddrIP address assigned to lease
[out]maskIP Mask
[out]hwaddrHardware address
[out]clientIdClient ID
[out]poolNamePool name
[out]remainingRemaining time in seconds
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied
Note
Hardware address is returned as a 6 byte raw hex value, and must be of size OPEN_MAC_ADDR_LEN

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerLeaseEntryFirstGet ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
uint32_t *  leaseIndex,
open_inet_addr_t ipaddr,
OPEN_DHCP_SERVER_LEASE_STATE_t state 
)

Get the first DHCP Server Lease Entry.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[out]leaseIndexLease index
[out]ipaddrLease IP address
[out]stateState of the lease
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure or no entry found found.
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerLeaseEntryNextGet ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
uint32_t *  leaseIndex,
open_inet_addr_t ipaddr,
OPEN_DHCP_SERVER_LEASE_STATE_t state 
)

Get the next DHCP Server Lease Entry.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[in,out]leaseIndexLease index
[out]ipaddrLease IP address
[out]stateState of the lease
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_NOT_FOUNDif no entry found
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolEntryFirstGet ( openapiClientHandle_t client_handle,
uint32_t *  poolIndex,
OPEN_DHCP_SERVER_POOL_NAME_t poolName 
)

Get the first DHCP Server Pool Entry.

Parameters
[in]client_handleClient handle from registration API
[out]poolIndexPool index
[out]poolNamePool name
Return values
OPEN_E_NONEif successful
OPEN_E_NOT_FOUNDif no entry found
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolEntryNextGet ( openapiClientHandle_t client_handle,
uint32_t *  poolIndex,
OPEN_DHCP_SERVER_POOL_NAME_t poolName 
)

Get the next DHCP Server Pool Entry.

Parameters
[in]client_handleClient handle from registration API
[in,out]poolIndexPool index
[out]poolNamePool name
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_NOT_FOUNDif no entry found
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolIpAddrLeaseDataClear ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
open_inet_addr_t ipaddr 
)

Clear lease data for pool name and IP address.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[in]ipaddrIP address assigned to lease
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolLeaseDataClear ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName 
)

Clear all lease data of a pool.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolTypeGet ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
OPEN_DHCP_SERVER_POOL_TYPE_t type 
)

Get the DHCP Server Pool Type.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[out]typePool type
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolVrfNameGet ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName 
)

Get the name of the VRF instance of a given DHCP server pool.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[out]vrfNameName of VRF-instance of the pool
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolVrfNameSet ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName 
)

Set the name of the VRF instance of a given DHCP server pool.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[in]vrfNameName of VRF-instance of the pool
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerPoolVrfNameSetToDefaultVrf ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_NAME_t poolName 
)

Set the name of the VRF instance of a given DHCP server pool.

Parameters
[in]client_handleClient handle from registration API
[in]poolNamePool name
[in]vrfNameName of VRF-instance of the pool
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerStatGet ( openapiClientHandle_t client_handle,
OPEN_DHCPS_STAT_ID_t  id,
uint32_t *  val 
)

Get the specified DHCP Server statistic.

Parameters
[in]client_handleClient handle from registration API
[in]idStatistic identifier
[out]valStatistic value
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif failure
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.18

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerVrfIpAddrLeaseDataClear ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName,
open_inet_addr_t ipaddr 
)

Clear lease data for VRF name and IP address.

Parameters
[in]client_handleClient handle from registration API
[in]vrfNameVRF instance name
[in]ipaddrIP address assigned to lease
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerVrfIpAddrLeaseDataGet ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName,
open_inet_addr_t ipaddr,
uint32_t *  mask,
open_buffdesc hwaddr,
OPEN_DHCP_SERVER_CLIENT_ID_t clientId,
OPEN_DHCP_SERVER_POOL_NAME_t poolName,
uint32_t *  remaining 
)

Get the DHCP server lease data for a given VRF name and IP address.

Parameters
[in]client_handleClient handle from registration API
[in]vrfNameVRF instance name
[in]ipaddrIP address assigned to lease
[out]maskIP Mask
[out]hwaddrHardware address
[out]clientIdClient ID
[out]poolNamePool name
[out]remainingRemaining time in seconds
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied
Note
Hardware address is returned as a 6 byte raw hex value, and must be of size OPEN_MAC_ADDR_LEN

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.
open_error_t openapiDhcpServerVrfLeaseDataClear ( openapiClientHandle_t client_handle,
OPEN_DHCP_SERVER_POOL_VRF_NAME_t vrfName 
)

Clear all lease data of a VRF instance.

Parameters
[in]client_handleClient handle from registration API
[in]vrfNameVRF instance name
Return values
OPEN_E_NONEif successful
OPEN_E_FAILif get operation has failed
OPEN_E_PARAMif invalid parameter is supplied

OpEN API Version: 1.20

Examples:
dhcp_server_example.c.