User Tools

Site Tools


network_stuff:arista:api

This is an old revision of the document!


Arista API

Ansible for Arista
Ansible in the (Linux) host machine

First of all we need >Python2.7, pip and setuptools:
To compile it Python 2.7:

tar -xvf Python-2.7.5.tgz
cd Python-2.7.5
./configure
make
sudo checkinstall

Download ansible-devel from github Compile it with source ./hacking/env-setup
Newer python versions include pip: http://tecadmin.net/install-python-2-7-on-centos-rhel/# Arista eAPI 101 . Several python examples can be found here This is a basic, simple example.
In gsites tchkwn, there is an example of a py to configure a set a vlans all at once in several switches.

EOS-4.14.8M-CommandApiGuide.pdf and browse into the correspondent active release
Arista eAPI Python Library

Python jsonrpclib
RPC / JSON-RPC specification



Ansible for EOS
http://chromaticsites.com/blog/automated-servers-and-deployments-ansible-jenkins
- Roles: “reusable abstractions” as their docs page explains. See more at: http://chromaticsites.com/blog/automated-servers-and-deployments-ansible-jenkins#sthash.i8k9rOHG.dpuf

- Playbooks

network_stuff/arista/api.1454705131.txt.gz · Last modified: (external edit)