Skip to content

Commit

Permalink
imagestatus.v1: Change SupportNotIntroduced & SupportRemoved to warnings
Browse files Browse the repository at this point in the history
1) Deprecating the old error codes
   ERROR_CODE_SUPPORT_NOT_INTRODUCED
   ERROR_CODE_SUPPORT_REMOVED

2) Adding new warning codes
   WARNING_CODE_SUPPORT_NOT_INTRODUCED
   WARNING_CODE_SUPPORT_REMOVED

Change-Id: Iec986c3a01c9c60c4356c435c0f40972e579717a
  • Loading branch information
Yuki771 committed Nov 17, 2023
1 parent 0b4c8eb commit 9d33170
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions arista/imagestatus.v1/imagestatus-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# New entries go on top.

Changes:
- date: 2023-11-15
description: Add WARNING_CODE_SUPPORT_NOT_INTRODUCED and WARNING_CODE_SUPPORT_REMOVED.
Deprecate the related error codes
version: 1.4.0
cvaas: true
- date: 2023-10-24
description: Add a new warning code WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED
version: 1.3.0
Expand Down
12 changes: 10 additions & 2 deletions arista/imagestatus.v1/imagestatus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,12 @@ enum ErrorCode {
ERROR_CODE_UNSPECIFIED = 0;
// ERROR_CODE_SUPPORT_NOT_INTRODUCED represents case where the given EOS version does
// not support the SKU.
ERROR_CODE_SUPPORT_NOT_INTRODUCED = 1;
// Deprecated - use WARNING_CODE_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.
ERROR_CODE_SUPPORT_REMOVED = 2;
// Deprecated - use WARNING_CODE_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.
ERROR_CODE_DEVICE_UNREACHABLE = 3;
Expand Down Expand Up @@ -343,6 +345,12 @@ enum WarningCode {
// WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED represents cases where the given EOS has passed
// its end of life date.
WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED = 11;
// WARNING_CODE_SUPPORT_NOT_INTRODUCED represents cases where the given EOS version does
// not support the SKUs.
WARNING_CODE_SUPPORT_NOT_INTRODUCED = 12;
// WARNING_CODE_SUPPORT_REMOVED represents cases where the given EOS version no longer
// supports the SKUs.
WARNING_CODE_SUPPORT_REMOVED = 13;
}

// ImageWarning wraps `WarningCode` enum with a reason string.
Expand Down

0 comments on commit 9d33170

Please sign in to comment.