Arista EOS Activate

Arista EOS Activate

Certified
Enterprise Edition

Stage an EOS image and set it as the boot image

Safe to retry. Copies the image from the HTTP image host to flash (skipped when the file is already on flash with the expected SHA-512), verifies it with verify /sha512, then runs boot system and confirms it with show boot-config. The switch is not reloaded and the configuration is not saved: Reload saves it.

The expected hash comes from <imageUrl>.sha512 (hash alone or hash file name) unless sha512 is set. A partial or corrupted file already on flash is deleted and copied again. .swix extensions are rejected. Failures raise ActivateFailed with the stage COPY, CHECKSUM, BOOT or SPACE. The SHA-512 proves integrity only: Aboot verifies the image signature at boot.

yaml
type: io.kestra.plugin.ee.arista.eos.Activate

Stage EOS 4.36.0F on a switch

yaml
id: arista_activate
namespace: company.network

tasks:
  - id: activate
    type: io.kestra.plugin.ee.arista.eos.Activate
    host: leaf1.lab.example.com
    username: "{{ secret('ARISTA_USERNAME') }}"
    password: "{{ secret('ARISTA_PASSWORD') }}"
    imageUrl: http://images.lab.example.com:8082/eos/4.36.0F/EOS-4.36.0F.swi
    copyTimeout: PT45M
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

Switch host

Host name or IP address of the switch management interface serving eAPI.

Image URL

Plain HTTP URL of the .swi image. The switch downloads it with copy, so it must reach the image host.

Password

Use {{ secret('ARISTA_PASSWORD') }}. The value is never logged nor returned in outputs.

Username

Account allowed to run privileged commands over eAPI.

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.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset 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.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

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.

Connect timeout

Maximum time to open the connection. Defaults to 10 seconds.

Copy timeout

Maximum time for the image copy and for each checksum verification. Defaults to 30 minutes.

Image size in bytes

Used for the flash space check. When empty, a HEAD request on imageUrl reads it, and the space check is skipped if that fails.

Trust any certificate

Disables certificate and host name validation. Only for labs with self-signed certificates. Defaults to false.

eAPI port

Defaults to 443.

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.

Expected SHA-512

Hex SHA-512 of the image. When set, <imageUrl>.sha512 is not fetched.

Copy skipped

True when the image was already on flash with the expected SHA-512.

Image file

File name of the image set as boot image, for example EOS-4.36.0F.swi.

Previous boot image

Boot image before this task, for example flash:/EOS-4.32.2F.swi. Needed to roll back.