Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Macros | Enumerations | Functions
openapi_sdm.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <sys/un.h>
#include "openapi_common.h"

Go to the source code of this file.

Macros

#define OPEN_MAX_SDM_TEMPLATES   5
 Maximum number of SDM templates. More...
 
#define OPEN_SDM_TEMPLATE_NAME_LEN   32
 Maximum number of characters in a template name, including the NULL terminator. More...
 

Enumerations

enum  OPEN_SDM_TEMPLATE_ID_t {
  OPEN_SDM_TEMPLATE_NONE = 0, OPEN_SDM_TEMPLATE_DUAL_DEFAULT = 1, OPEN_SDM_TEMPLATE_V4_DEFAULT = 2, OPEN_SDM_TEMPLATE_V4_DATA_CENTER = 3,
  OPEN_SDM_TEMPLATE_DATA_CENTER_PLUS = 4, OPEN_SDM_TEMPLATE_DUAL_DATA_CENTER = 5, OPEN_SDM_TEMPLATE_MPLS_DUAL_DATA_CENTER = 6, OPEN_SDM_TEMPLATE_DCVPN_DUAL_DATA_CENTER = 7,
  OPEN_SDM_TEMPLATE_DCVPN_V4_DATA_CENTER = 8, OPEN_SDM_TEMPLATE_ALPM = 9, OPEN_SDM_TEMPLATE_ALPM_MPLS_DUAL_DATA_CENTER = 10, OPEN_SDM_TEMPLATE_MAX = OPEN_SDM_TEMPLATE_ALPM_MPLS_DUAL_DATA_CENTER
}
 

Functions

open_error_t openapiSdmActiveTemplateGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t *templateId)
 Get the template ID of the active SDM template. More...
 
open_error_t openapiSdmNextActiveTemplateGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t *templateId)
 Get the template ID of the next active SDM template. More...
 
open_error_t openapiSdmNextActiveTemplateSet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId)
 Set the template ID of the next active SDM template. More...
 
open_error_t openapiSdmTemplateIdNextGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t *templateId)
 Get the next supported SDM template. More...
 
open_error_t openapiSdmTemplateMaxArpEntriesGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxEntries)
 Get the maximum number of ARP entries supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateMaxEcmpNextHopsGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxHops)
 Get the maximum number of ECMP next hops supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateMaxIpv4McastRoutesGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxRoutes)
 Get the maximum number of IPv4 multicast routes supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateMaxIpv4RoutesGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxRoutes)
 Get the maximum number of IPv4 routes supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateMaxIpv6McastRoutesGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxRoutes)
 Get the maximum number of IPv6 multicast routes supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateMaxIpv6RoutesGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxRoutes)
 Get the maximum number of IPv6 routes supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateMaxNdpEntriesGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, uint32_t *maxEntries)
 Get the maximum number of NDP entries supported in a specific SDM template. More...
 
open_error_t openapiSdmTemplateNameGet (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, open_buffdesc *templateName)
 Given a template ID, get the corresponding template name. More...
 
open_error_t openapiSdmTemplateSupported (openapiClientHandle_t *client_handle, OPEN_SDM_TEMPLATE_ID_t templateId, OPEN_BOOL_t *supported)
 Determine if a given SDM template is supported. More...