The following are instructions for setting up a system starting from stock system images.
These instructions were tested on a 64-bit systems from https://github.com/opscode/bento, and using the Junos PyEZ library version 1.3.1.
- Ubuntu 12.04
- Ubuntu 12.10
- Ubuntu 13.10
- Ubuntu 14.04
- Debian 7.4
- Debian 8.4
sudo apt-get update
sudo apt-get install -y --force-yes python-dev libxslt1-dev libssl-dev libffi-dev
wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python
sudo pip install junos-eznc
Once you've completed the above step, you should be able to create a Device
instance, connect to a Junos system, and display the "facts", as illustrated in the README.md file.
Enjoy!
Development code can be installed directly from GitHub based on any branch, commit, or tag.
Steps 1 -3 are still required.
sudo apt-get install -y git
sudo pip install git+https://github.com/Juniper/py-junos-eznc.git
or
sudo pip install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit>