Arista EOS
Infrastructure Username and password (eAPI)Check, upgrade and roll back Arista EOS switches over eAPI, directly from a Windmill flow.
Set up in 2 steps
Enable eAPI on the switch
In EOS configuration mode, run management api http-commands, then no shutdown. Use a user with privilege 15.
Add one resource per switch
In Resources, add an arista_eos resource with the switch's management address, username and password. Name it after the device (for example f/network/leaf1) so a flow can pick the switch by name.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Save Config
Run Commands
Push Config
List Config Sessions
Get VLANs
Get Startup Config
Get Running Config
Get Routes
Get MLAG
Get LLDP Neighbors
Get Interfaces
Get Facts
Get BGP Summary
Device upgrade
Device check
Confirm Commit
Abort Config Session
Resource type
The shape of the credential every script on this page expects.
arista_eos
View raw schema →| Field | Type | Required | What it is |
|---|---|---|---|
| host | string | Yes | Switch management hostname or IP, e.g. leaf1.example.net or 10.0.0.11. A full URL (https://10.0.0.11:8443) also works. |
| username | string | Yes | EOS user with privilege 15 (config sessions, boot system and reload need it). |
| password | string | Yes | Password of that EOS user. |
| port | number | No | Port of eAPI. Leave empty for 443 (80 for an http:// host). |
| verify_tls | boolean | No | Verify the switch's TLS certificate. Untick for the self-signed certificate EOS ships with. |
| allow_http | boolean | No | Allow an http:// host (eAPI's management api http-commands / protocol http). The password is then sent in cleartext: keep it off unless the switch is on an isolated management network. |
Questions
The switch has a self-signed certificate
Untick Verify TLS on the resource: the scripts then skip certificate verification for that switch.
How do I run an upgrade?
In one flow: Device check (pre), Device upgrade activate, then reload, Device check (post), then commit or rollback. MLAG is optional: without it, the redundancy check is left out. Reload refuses unsaved config unless allow_unsaved is set.
Can a switch event trigger a flow?
Not from this integration: schedule a flow that runs Device check or Get MLAG instead.