Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
Functions
This Code Implements The OpEN Interface App API [OPENAPI_INTERFACE_APP]

Functions

open_error_t openapiInterfaceAppTimeRangeGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, open_buffdesc *pTimeRange)
 Get interface time range information. More...
 
open_error_t openapiInterfaceAppTimeRangeSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, open_buffdesc *pTimeRange)
 Set interface time range information. More...
 

Detailed Description

Function Documentation

open_error_t openapiInterfaceAppTimeRangeGet ( openapiClientHandle_t client_handle,
uint32_t  intIfNum,
open_buffdesc pTimeRange 
)

Get interface time range information.

Parameters
[in]client_handleclient handle from registration API
[in]intIfNumInternal interface number
[out]pTimeRangeTime range name
Return values
OPEN_E_UNAVAILNot supported.
OPEN_E_NONEOn successful fetch of time range information.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
This API fetches interface time range information.

OpEN API Version: 1.28

Examples:
interface_app_example.c.
open_error_t openapiInterfaceAppTimeRangeSet ( openapiClientHandle_t client_handle,
uint32_t  intIfNum,
open_buffdesc pTimeRange 
)

Set interface time range information.

Parameters
[in]client_handleclient handle from registration API
[in]intIfNumInternal interface number
[in]pTimeRangeTime range name
Return values
OPEN_E_UNAVAILNot supported
OPEN_E_NONEOn Successful set time range to interface.
OPEN_E_FAILOn failure to set time range to interface.
OPEN_E_PARAMInvalid argument.
Note
This API sets interface time range information.
Calling this API will change the running configuration of the switch.
To clear time range information for an interface, data of pTimeRange->pstart should be empty string and pTimeRange->size should be 1.

OpEN API Version: 1.28

Examples:
interface_app_example.c.