Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_cli_script.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_cli_script.h
28 *
29 * @purpose CLI Text Based Configuration
30 *
31 * @component OPEN
32 *
33 * @create 4/26/2014
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_CLI_SCRIPT_H
39 #define OPENAPI_CLI_SCRIPT_H
40 
41 #include "openapi_common.h"
42 
43 #define OPENAPI_FILE_NAME_LENGTH_MAX 96
44 #define OPENAPI_CLI_MAX_STRING_LENGTH 255
45 
46 /*****************************************************************/
67  open_buffdesc *txtCfgFile, open_buffdesc *outFile);
68 
69 /*****************************************************************/
87  open_buffdesc *txtCfgFile);
88 
89 /*****************************************************************/
107 
108 /*****************************************************************/
129  open_buffdesc *txtCfgFile, open_buffdesc *outFile);
130 
131 /*****************************************************************/
146  uint32_t *maxLen);
147 
148 /*****************************************************************/
168  open_buffdesc *txtCfgFile, open_buffdesc *outFile);
169 
170 /*****************************************************************/
189  open_buffdesc *txtCfgFile,
190  open_buffdesc *outFile);
191 
192 /*****************************************************************/
213  open_buffdesc *showCliCommand,
214  open_buffdesc *fileName);
215 
216 /*****************************************************************/
238  open_buffdesc *pInUncompCfgFile,
239  open_buffdesc *pOutCmpCfgFile);
240 
241 /*****************************************************************/
262  open_buffdesc *pInCompCfgFile,
263  open_buffdesc *pOutUncompCfgFile);
264 #endif
265 
open_error_t openapiTxtCfgApply(openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile)
Apply CLI text based configuration.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiTxtCfgNDCApply(openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile)
gracefully Apply CLI text based configuration
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 openapiFileNameMaxLengthGet(openapiClientHandle_t *client_handle, uint32_t *maxLen)
Get the maximum file name length.
open_error_t openapiTxtCfgValidate(openapiClientHandle_t *client_handle, open_buffdesc *txtCfgFile, open_buffdesc *outFile)
Validate given configuration file.
open_error_t openapiTxtCfgUnCompress(openapiClientHandle_t *client_handle, open_buffdesc *pInCompCfgFile, open_buffdesc *pOutUncompCfgFile)
Uncompress a given configuration file.
open_error_t openapiTxtCfgCompress(openapiClientHandle_t *client_handle, open_buffdesc *pInUncompCfgFile, open_buffdesc *pOutCmpCfgFile)
Compress a given configuration file.
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 openapiCliShowExecuteToFile(openapiClientHandle_t *client_handle, open_buffdesc *showCliCommand, open_buffdesc *fileName)
Execute given show CLI command and redirect its output to the specified file.