Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Macros | Functions
openapi_image.h File Reference
#include "openapi_common.h"

Go to the source code of this file.

Macros

#define OPEN_IMAGE_NAME_NONE   "none"
 
#define OPEN_UBOOT_VERSION_LENGTH   17 /* UBOOT_VERSION_LENGTH + 1 */
 

Functions

open_error_t openapiBootCodeUpdate (openapiClientHandle_t *client_handle, uint32_t unit)
 Updates the bootcode from the currently activated image. More...
 
open_error_t openapiBootCodeVersion (openapiClientHandle_t *client_handle, open_buffdesc *version)
 Gets the boot code version from the current active image. More...
 
open_error_t openapiImageActivate (openapiClientHandle_t *client_handle, uint32_t unit, open_buffdesc *imageLabel, OPEN_BOOL_t updateBootCode)
 Sets the specified image as the active image for the subsequent re-boots. More...
 
open_error_t openapiImageDelete (openapiClientHandle_t *client_handle, uint32_t unit, open_buffdesc *imageLabel)
 Deletes the specified image. More...
 
open_error_t openapiImageDescrGet (openapiClientHandle_t *client_handle, open_buffdesc *imageLabel, open_buffdesc *imageDescr)
 Get the text description for a given image. More...
 
open_error_t openapiImageDescrSet (openapiClientHandle_t *client_handle, open_buffdesc *imageLabel, open_buffdesc *imageDescr)
 Set the text description for a given image. More...
 
open_error_t openapiImageLabelIsValid (openapiClientHandle_t *client_handle, open_buffdesc *imageLabel, OPEN_BOOL_t *isValid)
 Determines if the image label refers to a valid image name. More...
 
open_error_t openapiImageLabelsGet (openapiClientHandle_t *client_handle, open_buffdesc *activeLabel, open_buffdesc *backupLabel)
 Get the label names for both active and backup images. More...
 
open_error_t openapiImageNamesGet (openapiClientHandle_t *client_handle, uint32_t unit, open_buffdesc *activeImage, open_buffdesc *backupImage, open_buffdesc *activatedImage)
 Get the image names for both active, backup, and activated. More...
 
open_error_t openapiImageUpgrade (openapiClientHandle_t *client_handle, open_buffdesc *imagePath, open_buffdesc *imageLabel)
 Get a locally copied image path, perform validation on it and on success, upgrade the switch with this image. More...