40 #ifndef OPENAPI_DHCP_SERVER_H_INCLUDED
41 #define OPENAPI_DHCP_SERVER_H_INCLUDED
63 #define OPEN_DHCP_SERVER_POOL_NAME_MAXLEN 32
64 #define OPEN_DHCP_SERVER_CLIENT_ID_MAXLEN 256
65 #define OPEN_DHCP_SERVER_POOL_VRF_NAME_MAXLEN 65
70 char name[OPEN_DHCP_SERVER_POOL_NAME_MAXLEN];
76 char name[OPEN_DHCP_SERVER_POOL_VRF_NAME_MAXLEN];
83 char clientid[OPEN_DHCP_SERVER_CLIENT_ID_MAXLEN];
133 uint32_t *remaining);
214 uint32_t *leaseIndex,
238 uint32_t *leaseIndex,
334 uint32_t *pRangeIndex,
359 uint32_t *pRangeIndex,
436 uint32_t *remaining);
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 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 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 openapiDhcpServerPoolLeaseDataClear(openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_NAME_t *poolName)
Clear all lease data of a pool.
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 openapiDhcpServerStatGet(openapiClientHandle_t *client_handle, OPEN_DHCPS_STAT_ID_t id, uint32_t *val)
Get the specified DHCP Server statistic.
DHCP Pool's VRF-name.
OPEN_DHCP_SERVER_POOL_TYPE_t
Pool types.
OPEN_DHCPS_STAT_ID_t
DHCP Server Statistic IDs.
open_error_t
OPEN uses these enumerators to indicate the error codes.
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 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.
Request messages received.
Release messages received.
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.
Discover messages dropped.
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 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 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.
Must be last (bounds checking).
Inform messages received.
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 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 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 openapiDhcpServerAllLeaseDataClear(openapiClientHandle_t *client_handle)
Clear all lease data across all VRFs.
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.
Discover messages received.
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 openapiDhcpServerVrfLeaseDataClear(openapiClientHandle_t *client_handle, OPEN_DHCP_SERVER_POOL_VRF_NAME_t *vrfName)
Clear all lease data of a VRF instance.
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_DHCP_SERVER_LEASE_STATE_t
DHCP server lease states.
Decline messages received.