From b0e6e5a9f4b437935303d65ceb4581aaa06bf69e Mon Sep 17 00:00:00 2001 From: Yuqi Li Date: Tue, 28 Nov 2023 15:47:07 -0800 Subject: [PATCH] imagestatus.v1: Add errCode ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE 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 --- 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 3ab37904..b442e7a1 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-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 diff --git a/arista/imagestatus.v1/imagestatus.proto b/arista/imagestatus.v1/imagestatus.proto index cbefc812..cdf62cfb 100644 --- a/arista/imagestatus.v1/imagestatus.proto +++ b/arista/imagestatus.v1/imagestatus.proto @@ -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.