Skip to content

Commit

Permalink
imagestatus.v1: Add errCode ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE
Browse files Browse the repository at this point in the history
Add an error code ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE in
imagestatus.proto to raise an error when the physical device does not
support the given EOS type.

Change-Id: I0004a3c942f1f7e3705eebcc6cc907de1750fe58
  • Loading branch information
Yuki771 committed Dec 19, 2023
1 parent 60570e0 commit b0e6e5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 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 a new error code ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE
version: 1.6.0
cvaas: true
- date: 2023-12-12
description: Add ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED and ERROR_CODE_EOS_SUPPORT_REMOVED
version: 1.5.0
Expand Down
3 changes: 3 additions & 0 deletions arista/imagestatus.v1/imagestatus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ enum ErrorCode {
// ERROR_CODE_EOS_SUPPORT_REMOVED represents the case where the given EOS version no longer
// supports the SKU.
ERROR_CODE_EOS_SUPPORT_REMOVED = 12;
// ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE represents the case where the physical device
// does not support the given EOS type.
ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE = 13;
}

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

0 comments on commit b0e6e5a

Please sign in to comment.