
Arista EOS Rollback
CertifiedEnterprise EditionRoll an EOS switch back to its previous image
Arista EOS Rollback
Roll an EOS switch back to its previous image
Checks that the image booted before the upgrade (from the snapshot) is still on flash, runs boot system on it, saves the configuration, then reloads the switch with the same once-only guard as Reload: nothing is sent when the switch already runs the snapshot version (alreadyReloaded). Follow it with WaitForReturn, only when alreadyReloaded is false, passing previousBootupTimestamp: "{{ outputs.<task id>.bootupTimestamp }}", and a POST Check, which must find the previous version.
Any failure raises RollbackFailed, there is no automatic second attempt. Do not set a task level retry.
type: io.kestra.plugin.ee.arista.eos.RollbackExamples
Roll back to the image captured in the pre-check snapshot
id: arista_rollback
namespace: company.network
inputs:
- id: snapshot
type: URI
tasks:
- id: rollback
type: io.kestra.plugin.ee.arista.eos.Rollback
host: leaf1.lab.example.com
username: "{{ secret('ARISTA_USERNAME') }}"
password: "{{ secret('ARISTA_PASSWORD') }}"
snapshot: "{{ inputs.snapshot }}"
- id: wait_gate
type: io.kestra.plugin.core.flow.If
condition: "{{ outputs.rollback.alreadyReloaded == false }}"
then:
- id: wait
type: io.kestra.plugin.ee.arista.eos.WaitForReturn
host: leaf1.lab.example.com
username: "{{ secret('ARISTA_USERNAME') }}"
password: "{{ secret('ARISTA_PASSWORD') }}"
previousBootupTimestamp: "{{ outputs.rollback.bootupTimestamp }}"
- id: post
type: io.kestra.plugin.ee.arista.eos.Check
host: leaf1.lab.example.com
username: "{{ secret('ARISTA_USERNAME') }}"
password: "{{ secret('ARISTA_PASSWORD') }}"
phase: POST
snapshot: "{{ inputs.snapshot }}"
Installation
This Enterprise plugin requires an Enterprise image and access to the plugin registry. Install it with the following command:
kestractl plugins get io.kestra.plugin.ee:plugin-ee-arista --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.
Properties
host *string
Switch host
Host name or IP address of the switch management interface serving eAPI.
password *string
Password
Use {{ secret('ARISTA_PASSWORD') }}. The value is never logged nor returned in outputs.
snapshot *string
Snapshot
Internal storage URI of the PRE check snapshot, which holds the previous boot image and version.
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
username *string
Username
Account allowed to run privileged commands over eAPI.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150caCertificate string
CA certificate
PEM encoded CA certificate(s) used to validate the switch certificate. When set, only this CA is trusted. When empty, the JVM trust store is used.
connectTimeout string
Connect timeout
Maximum time to open the connection. Defaults to 10 seconds.
insecureTrustAllCertificates booleanstring
Trust any certificate
Disables certificate and host name validation. Only for labs with self-signed certificates. Defaults to false.
port integerstring
eAPI port
Defaults to 443.
requestTimeout string
Request timeout
Maximum time to wait for one eAPI answer. Defaults to 60 seconds. Tasks that run slow commands (image copy, checksum) expose their own timeout.
Outputs
alreadyReloaded boolean
Already reloaded
True when the switch already ran the previous version, so no reload was sent.
bootupTimestamp number
Boot timestamp before the reload
Epoch seconds of the boot the switch was on when the rollback started. Pass it as previousBootupTimestamp to the following WaitForReturn, which is not needed when alreadyReloaded is true.
previousImage string
Previous image
File name of the image booted by the rollback.