The following are instructions for setting up a system starting from a 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 2.1.0.
- Fedora 25
- Fedora 24
- CentOS 7.3
- CentOS 6.8
sudo yum install python-pip python-devel
sudo yum install python-devel
wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python
sudo yum install python3-devel
(Python 3 packages for CentOS are not provided.)
sudo yum install libxml2-devel libxslt-devel gcc openssl-devel libffi-devel redhat-rpm-config
sudo pip install junos-eznc
sudo pip3 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 yum install 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>
sudo pip3 install git+https://github.com/Juniper/py-junos-eznc.git
or
sudo pip3 install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit>