|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.9.0.2
|
Macros | |
| #define | OPENAPI_CLI_MAX_STRING_LENGTH 255 |
| #define | OPENAPI_FILE_NAME_LENGTH_MAX 96 |
Functions | |
| open_error_t | openapiCliShowExecuteToFile (openapiClientHandle_t *client_handle, open_buffdesc *showCliCommand, open_buffdesc *fileName) |
| Execute given show CLI command and redirect its output to the specified file. | |
| open_error_t | openapiFileNameMaxLengthGet (openapiClientHandle_t *client_handle, uint32_t *maxLen) |
| Get the maximum file name length. | |
| open_error_t | openapiRunningCfgGenerate (openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile) |
| Generate running configuration into specified file. | |
| open_error_t | openapiSaveConfig (openapiClientHandle_t *client_handle) |
| Save running configuration into startup configuration file. | |
| open_error_t | openapiTxtCfgApply (openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile) |
| Apply CLI text based configuration. | |
| open_error_t | openapiTxtCfgNDCApply (openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile) |
| gracefully Apply CLI text based configuration | |
| open_error_t | openapiTxtCfgNDCGenerate (openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile) |
| Generate configuration difference between running configuration and input configuration file. | |
| open_error_t | openapiTxtCfgValidate (openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile) |
| Validate given configuration file. | |
| open_error_t openapiCliShowExecuteToFile | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | showCliCommand, | ||
| open_buffdesc * | fileName | ||
| ) |
Execute given show CLI command and redirect its output to the specified file.
| [in] | client_handle | Client handle from registration API |
| [in] | showCliCommand | Show CLI command Maximum value OPENAPI_CLI_MAX_STRING_LENGTH |
| [in] | fileName | Output file name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| OPEN_E_NONE | if default configuration applied |
| OPEN_E_FAIL | if invalid file name is passed |
| OPEN_E_PARAM | if invalid parameter is passed |
| OPEN_E_UNAVAIL | if CLI package is not enabled. |
OpEN API Version: 1.7
| open_error_t openapiFileNameMaxLengthGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | maxLen | ||
| ) |
Get the maximum file name length.
| [in] | client_handle | Client handle from registration API |
| [out] | maxLen | Maximum length for a file name. |
| OPEN_E_NONE | if file name maximum length is returned. |
| OPEN_E_PARAM | if invalid parameter is passed. |
OpEN API Version: 1.4
| open_error_t openapiRunningCfgGenerate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | txtCfgFile | ||
| ) |
Generate running configuration into specified file.
| [in] | client_handle | Client handle from registration API |
| [in] | txtCfgFile | File Name |
| - | Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| OPEN_E_NONE | if default configuration applied |
| OPEN_E_FAIL | if invalid file name is passed |
| OPEN_E_PARAM | if invalid parameter is passed |
OpEN API Version: 1.4
| open_error_t openapiSaveConfig | ( | openapiClientHandle_t * | client_handle | ) |
Save running configuration into startup configuration file.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | if default configuration applied |
| OPEN_E_FAIL | if invalid file name is passed |
| OPEN_E_PARAM | if invalid parameter is passed |
OpEN API Version: 1.4
| open_error_t openapiTxtCfgApply | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | txtCfgFile, | ||
| open_buffdesc * | outFile | ||
| ) |
Apply CLI text based configuration.
| [in] | client_handle | Client handle from registration API |
| [in] | txtCfgFile | File Name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| [in] | outFile | Output File Name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| OPEN_E_NONE | if default configuration applied |
| OPEN_E_FAIL | if invalid file name is passed |
| OPEN_E_PARAM | if invalid parameter is passed |
OpEN API Version: 1.4
| open_error_t openapiTxtCfgNDCApply | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | txtCfgFile, | ||
| open_buffdesc * | outFile | ||
| ) |
gracefully Apply CLI text based configuration
| [in] | client_handle | Client handle from registration API |
| [in] | txtCfgFile | File Name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| [in] | outFile | Output File Name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| OPEN_E_NONE | if default configuration applied |
| OPEN_E_FAIL | if invalid file name is passed |
| OPEN_E_PARAM | if invalid parameter is passed |
OpEN API Version: 1.5
| open_error_t openapiTxtCfgNDCGenerate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | txtCfgFile, | ||
| open_buffdesc * | outFile | ||
| ) |
Generate configuration difference between running configuration and input configuration file.
| [in] | client_handle | Client handle from registration API |
| [in] | txtCfgFile | File Name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| [in] | outFile | Output File Name Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| OPEN_E_NONE | if default configuration applied |
| OPEN_E_FAIL | if invalid file name is passed |
| OPEN_E_PARAM | if invalid parameter is passed |
OpEN API Version: 1.5
| open_error_t openapiTxtCfgValidate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | txtCfgFile, | ||
| open_buffdesc * | outFile | ||
| ) |
Validate given configuration file.
| [in] | client_handle | Client handle from registration API |
| [in] | txtCfgFile | File Name |
| - | Maximum value OPENAPI_FILE_NAME_LENGTH_MAX | |
| [in] | outFile | Output File Name |
| - | Maximum value OPENAPI_FILE_NAME_LENGTH_MAX |
| OPEN_E_NONE | if the configuration is valid |
| OPEN_E_FAIL | if the configuration is invalid |
| OPEN_E_PARAM | if invalid parameter is passed |
| OPEN_E_INTERNAL | if internal error has occurred |
OpEN API Version: 1.4