From 0b4c8ebdc8f6aecfc3649f612133220a2babb58e Mon Sep 17 00:00:00 2001 From: Yuqi Li Date: Thu, 14 Sep 2023 02:10:18 -0700 Subject: [PATCH] imagestatus.v1: Add an err code for EOS enf of life 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 --- arista/imagestatus.v1/imagestatus-changelog.yaml | 4 ++++ arista/imagestatus.v1/imagestatus.proto | 3 +++ 2 files changed, 7 insertions(+) diff --git a/arista/imagestatus.v1/imagestatus-changelog.yaml b/arista/imagestatus.v1/imagestatus-changelog.yaml index 1ff3c734..60a45ecc 100644 --- a/arista/imagestatus.v1/imagestatus-changelog.yaml +++ b/arista/imagestatus.v1/imagestatus-changelog.yaml @@ -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 diff --git a/arista/imagestatus.v1/imagestatus.proto b/arista/imagestatus.v1/imagestatus.proto index 3ef95a54..b4913b86 100644 --- a/arista/imagestatus.v1/imagestatus.proto +++ b/arista/imagestatus.v1/imagestatus.proto @@ -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.