38 #ifndef OPENAPI_IMAGE_H_INCLUDED
39 #define OPENAPI_IMAGE_H_INCLUDED
43 #define OPEN_UBOOT_VERSION_LENGTH 17
45 #define OPEN_IMAGE_NAME_NONE "none"
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 thi...
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.
open_error_t openapiBootCodeVersion(openapiClientHandle_t *client_handle, open_buffdesc *version)
Gets the boot code version from the current active image.
open_error_t openapiImageLabelsGet(openapiClientHandle_t *client_handle, open_buffdesc *activeLabel, open_buffdesc *backupLabel)
Get the label names for both active and backup images.
open_error_t
OPEN uses these enumerators to indicate the error codes.
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.
open_error_t openapiImageDelete(openapiClientHandle_t *client_handle, uint32_t unit, open_buffdesc *imageLabel)
Deletes the specified image.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiBootCodeUpdate(openapiClientHandle_t *client_handle, uint32_t unit)
Updates the bootcode from the currently activated image.
open_error_t openapiImageDescrGet(openapiClientHandle_t *client_handle, open_buffdesc *imageLabel, open_buffdesc *imageDescr)
Get the text description for a given image.
open_error_t openapiImageDescrSet(openapiClientHandle_t *client_handle, open_buffdesc *imageLabel, open_buffdesc *imageDescr)
Set the text description for a given image.
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.