From eb093cbdfea40af751ad45c061c3c105f75ff264 Mon Sep 17 00:00:00 2001 From: niraj gupta Date: Wed, 21 Aug 2024 09:48:56 -0700 Subject: [PATCH] arista/workspace.v1: decommission skip cause for sync Change-Id: I1b7ec8c1da9a22913062830a22ffa5e0eee7febc --- arista/workspace.v1/services.gen.swagger.json | 14 ++++++++++++-- arista/workspace.v1/workspace-changelog.yaml | 4 ++++ arista/workspace.v1/workspace.proto | 6 ++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/arista/workspace.v1/services.gen.swagger.json b/arista/workspace.v1/services.gen.swagger.json index 4c85eb7a..81d363e1 100644 --- a/arista/workspace.v1/services.gen.swagger.json +++ b/arista/workspace.v1/services.gen.swagger.json @@ -2736,6 +2736,10 @@ "b": { "$ref": "#/definitions/arista.imagestatus.v1.Extension", "description": "b is the extension on the b side (right hand side)." + }, + "textCode": { + "$ref": "#/definitions/arista.imagestatus.v1.DiffOp", + "description": "text_code is the color in the diff view page." } }, "description": "ExtensionDiff is the diff for the running/designed extensions." @@ -3031,6 +3035,10 @@ "b": { "$ref": "#/definitions/arista.imagestatus.v1.SoftwareImage", "description": "b is the software image on the b side (right hand side)." + }, + "textCode": { + "$ref": "#/definitions/arista.imagestatus.v1.DiffOp", + "description": "text_code is the color in the diff view page." } }, "description": "SoftwareImageDiff is the diff for the running/designed images." @@ -3190,10 +3198,12 @@ "CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED", "CONFIG_SYNC_SKIP_CAUSE_INACTIVE", "CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED", - "CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE" + "CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE", + "CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES", + "CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED" ], "default": "CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED", - "description": "ConfigSyncSkipCause enumerates the set of reasons a device can skip config sync.\n\n - CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED: CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED indicates that config sync skip cause is\nunspecified.\n - CONFIG_SYNC_SKIP_CAUSE_INACTIVE: CONFIG_SYNC_SKIP_CAUSE_INACTIVE indicates that config sync is skipped because\ndevice is not streaming.\n - CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED: CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED indicates that config sync is skipped\nbecause device is pre-provisioned.\n - CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE: CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE indicates that config sync is skipped\nbecause device is in compliance." + "description": "ConfigSyncSkipCause enumerates the set of reasons a device can skip config sync.\n\n - CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED: CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED indicates that config sync skip cause is\nunspecified.\n - CONFIG_SYNC_SKIP_CAUSE_INACTIVE: CONFIG_SYNC_SKIP_CAUSE_INACTIVE indicates that config sync is skipped because\ndevice is not streaming.\n - CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED: CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED indicates that config sync is skipped\nbecause device is pre-provisioned.\n - CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE: CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE indicates that config sync is skipped\nbecause device is in compliance.\n - CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES: CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES indicates that the sync was\nskipped because the device has no config sources.\n - CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED: CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that sync was\nskipped because the device is decommissioned in the workspace." }, "arista.workspace.v1.ConfigValidationResult": { "type": "object", diff --git a/arista/workspace.v1/workspace-changelog.yaml b/arista/workspace.v1/workspace-changelog.yaml index 52f647d8..95d7fbbc 100644 --- a/arista/workspace.v1/workspace-changelog.yaml +++ b/arista/workspace.v1/workspace-changelog.yaml @@ -7,6 +7,10 @@ # New entries go on top. Changes: + - date: 2024-08-19 + description: Add device decommissioned skip cause to ConfigSyncSkipCause + version: 1.3.8 + cvaas: true - date: 2024-08-05 description: Add RESPONSE_CODE_DECOMMISSION_DEVICES_INCOMPLETE to ResponseCode version: 1.3.7 diff --git a/arista/workspace.v1/workspace.proto b/arista/workspace.v1/workspace.proto index 9ea96b06..b0cb85d0 100644 --- a/arista/workspace.v1/workspace.proto +++ b/arista/workspace.v1/workspace.proto @@ -520,6 +520,12 @@ enum ConfigSyncSkipCause { // CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE indicates that config sync is skipped // because device is in compliance. CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE = 3; + // CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES indicates that the sync was + // skipped because the device has no config sources. + CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES = 4; + // CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that sync was + // skipped because the device is decommissioned in the workspace. + CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED = 5; } // WorkspaceSyncKey uniquely identifies sync operations to be performed