Skip to content

Commit

Permalink
imagestatus.v1: Add an err code for EOS enf of life
Browse files Browse the repository at this point in the history
Add a new warning code WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED.
If the EOS image to be applied has passed its end of life date, a
warning should be generated.

Change-Id: If046927431f9e7b1cd48839654fc9267179dcaef
  • Loading branch information
Yuki771 committed Nov 9, 2023
1 parent cf3b54a commit 0b4c8eb
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-10-24
description: Add a new warning code WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED
version: 1.3.0
cvaas: true
- date: 2023-10-18
description: Remove supervisor related errors
version: 1.2.1
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 @@ -340,6 +340,9 @@ enum WarningCode {
// WARNING_CODE_ARCH_INCOMPATIBLE represents cases where EOS arch and TA arch are
// different. Deprecated.
WARNING_CODE_ARCH_INCOMPATIBLE = 10 [deprecated=true];
// 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;
}

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

0 comments on commit 0b4c8eb

Please sign in to comment.