Skip to content

Commit

Permalink
imagestatus.v1: Add EOS_SUPPORT_NOT_INTRODUCED & EOS_SUPPORT_REMOVED
Browse files Browse the repository at this point in the history
Add 2 error codes: ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED and
ERROR_CODE_EOS_SUPPORT_REMOVED in imagestatus.proto.

ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED represents the case where the
given EOS version does not support the SKU.

ERROR_CODE_EOS_SUPPORT_REMOVED represents the case where the given EOS
version no longer supports the SKU.

Change-Id: I545f53b764f1f0f2fc840feb84f1d15c7fd30bad
  • Loading branch information
Yuki771 committed Dec 18, 2023
1 parent 1d1b6c2 commit 60570e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions arista/imagestatus.v1/imagestatus-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# New entries go on top.

Changes:
- date: 2023-12-12
description: Add ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED and ERROR_CODE_EOS_SUPPORT_REMOVED
version: 1.5.0
cvaas: true
- date: 2023-11-15
description: Add WARNING_CODE_SUPPORT_NOT_INTRODUCED and WARNING_CODE_SUPPORT_REMOVED.
Deprecate the related error codes
Expand Down
10 changes: 8 additions & 2 deletions arista/imagestatus.v1/imagestatus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ enum ErrorCode {
ERROR_CODE_UNSPECIFIED = 0;
// ERROR_CODE_SUPPORT_NOT_INTRODUCED represents case where the given EOS version does
// not support the SKU.
// Deprecated - use WARNING_CODE_SUPPORT_NOT_INTRODUCED
// Deprecated - use ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED
ERROR_CODE_SUPPORT_NOT_INTRODUCED = 1 [deprecated=true];
// ERROR_CODE_SUPPORT_REMOVED represents case where the given EOS version no longer
// supports the SKU.
// Deprecated - use WARNING_CODE_SUPPORT_REMOVED
// Deprecated - use ERROR_CODE_EOS_SUPPORT_REMOVED
ERROR_CODE_SUPPORT_REMOVED = 2 [deprecated=true];
// ERROR_CODE_DEVICE_UNREACHABLE represents the case where the device
// is unreachable during a compliance computation.
Expand All @@ -289,6 +289,12 @@ enum ErrorCode {
// ERROR_CODE_EOS_CV_INCOMPATIBLE represents the case where the EOS version is incompatible with
// CloudVision; i.e., the EOS version is outside of CloudVision's supported range of versions.
ERROR_CODE_EOS_CV_INCOMPATIBLE = 10;
// ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED represents the case where the given EOS version does
// not support the SKU.
ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED = 11;
// ERROR_CODE_EOS_SUPPORT_REMOVED represents the case where the given EOS version no longer
// supports the SKU.
ERROR_CODE_EOS_SUPPORT_REMOVED = 12;
}

// ImageError wraps `ErrorCode` enum with a reason string.
Expand Down

0 comments on commit 60570e0

Please sign in to comment.