Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Macros | Enumerations | Functions
openapi_lag.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_LAG_MEMBER_BUFFER_SIZE   (sizeof(uint32_t) * OPEN_MAX_MEMBERS_PER_LAG)
 
#define OPEN_MAX_MEMBERS_PER_LAG   32
 

Enumerations

enum  OPEN_DOT3AD_STATE_TYPE_t { OPEN_DOT3AD_STATE_AGGREGATION = 0, OPEN_DOT3AD_STATE_LACP_TIMEOUT = 1, OPEN_DOT3AD_STATE_LACP_ACTIVITY = 2 }
 OpEN uses these enumerations to indicate DOT3AD state types. More...
 
enum  OPEN_LAG_HASH_MODE_t {
  OPEN_LAG_HASHING_MODE_SA_VLAN = 0, OPEN_LAG_HASHING_MODE_DA_VLAN = 1, OPEN_LAG_HASHING_MODE_SDA_VLAN = 2, OPEN_LAG_HASHING_MODE_SIP_SPORT = 3,
  OPEN_LAG_HASHING_MODE_DIP_DPORT = 4, OPEN_LAG_HASHING_MODE_SDIP_DPORT = 5, OPEN_LAG_HASHING_MODE_ENHANCED = 6
}
 Hash Mode names. More...
 

Functions

open_error_t openapiDot3adAggPortActorAdminStateGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT3AD_STATE_TYPE_t type, OPEN_CONTROL_t *state)
 Gets the LACP actor admin state. More...
 
open_error_t openapiDot3adAggPortActorAdminStateSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT3AD_STATE_TYPE_t type, OPEN_CONTROL_t mode)
 Sets the LACP actor admin state. More...
 
open_error_t openapiDot3adAggPortLacpModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lacpMode)
 Gets the LACP mode of the physical interface. More...
 
open_error_t openapiDot3adAggPortLacpModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lacpMode)
 Sets the LACP mode of the physical interface. More...
 
open_error_t openapiLagActiveMembersGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets the list of active member ports for the LAG interface. More...
 
open_error_t openapiLagActiveMembersListGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets a comma-delimited list of active member ports for the LAG interface. More...
 
open_error_t openapiLagAdminModeGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t *adminMode)
 Get the administrative mode of a LAG interface. More...
 
open_error_t openapiLagAdminModeSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t adminMode)
 Set the administrative mode of a LAG interface. More...
 
open_error_t openapiLagLoadBalanceModeGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_LAG_HASH_MODE_t *lbMode)
 Gets load balancing mode of the LAG interface. More...
 
open_error_t openapiLagLoadBalanceModeSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_LAG_HASH_MODE_t lbMode)
 Sets load balancing mode of the LAG interface. More...
 
open_error_t openapiLagMaxMemberCountGet (openapiClientHandle_t *client_handle, uint32_t *memberMax)
 Get the maximum number of members allowed for a LAG. More...
 
open_error_t openapiLagMembersGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets the list of member ports for the LAG interface. More...
 
open_error_t openapiLagMembersListGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets a comma-delimited list of member ports for the LAG interface. More...
 
open_error_t openapiLagMinUplinksGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *minUpLinks)
 Gets minimum uplinks for the LAG interface. More...
 
open_error_t openapiLagMinUplinksSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t minUpLinks)
 Sets minimum uplinks for the LAG interface. More...
 
open_error_t openapiLagNameGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, open_buffdesc *name)
 Gets name of the LAG interface. More...
 
open_error_t openapiLagNameMaxLengthGet (openapiClientHandle_t *client_handle, uint32_t *maxLen)
 Get the maximum LAG name length. More...
 
open_error_t openapiLagNameSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, open_buffdesc *name)
 Sets name of the LAG interface. More...
 
open_error_t openapiLagPortAdd (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t phyIfNum)
 Adds a physical interface to a LAG interface. More...
 
open_error_t openapiLagPortDelete (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t phyIfNum)
 Delete a physical interface from a LAG interface. More...
 
open_error_t openapiLagStaticModeGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t *staticMode)
 Gets static mode of the LAG interface. More...
 
open_error_t openapiLagStaticModeSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t staticMode)
 Sets static mode of the LAG interface. More...
 
open_error_t openapiLagThresholdMinMaxGet (openapiClientHandle_t *client_handle, uint32_t *minThreshold, uint32_t *maxThreshold)
 Get the LAG Threshold minimum and maximum values. More...