Pyeapi installation

Installation is straightforward with pip:

$ sudo pip install pyeapi$ sudo pip3 install pyeapi
Note that pip will also install the netaddr library as it is part of the stated requirements (http://pyeapi.readthedocs.io/en/master/requirements.html) for Pyeapi.

By default, the Pyeapi client will look for an INI style hidden (with a period in front) file called eapi.conf in your home directory. You can override this behavior by specifying the eapi.conf file path, but it is generally a good idea to separate your connection credential and lock it down from the script itself. You can check out the Arista Pyeapi documentation (http://pyeapi.readthedocs.io/en/master/configfile.html#configfile) for the fields contained in the file. ...

Get Mastering Python Networking - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.