Skip to content

Commit

Permalink
arista/workspace.v1: decommission skip cause for sync
Browse files Browse the repository at this point in the history
Change-Id: I1b7ec8c1da9a22913062830a22ffa5e0eee7febc
  • Loading branch information
niraj gupta committed Aug 27, 2024
1 parent fec6d9f commit eb093cb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
14 changes: 12 additions & 2 deletions arista/workspace.v1/services.gen.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions arista/workspace.v1/workspace-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: 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
Expand Down
6 changes: 6 additions & 0 deletions arista/workspace.v1/workspace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb093cb

Please sign in to comment.