| 1 |
### Installation on stock Fedora |
| 2 |
|
| 3 |
The following are instructions for setting up a system starting from a stock system images. |
| 4 |
|
| 5 |
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. |
| 6 |
|
| 7 |
Operating Systems |
| 8 |
--------------- |
| 9 |
- Fedora 25 |
| 10 |
- Fedora 24 |
| 11 |
- CentOS 7.3 |
| 12 |
- CentOS 6.8 |
| 13 |
|
| 14 |
#### Step 1: Install Python and PIP |
| 15 |
|
| 16 |
##### For Python 2.x: |
| 17 |
###### For Fedora: |
| 18 |
sudo yum install python-pip python-devel |
| 19 |
###### For CentOS: |
| 20 |
sudo yum install python-devel |
| 21 |
wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python |
| 22 |
|
| 23 |
##### For Python 3.x: |
| 24 |
###### For Fedora: |
| 25 |
sudo yum install python3-devel |
| 26 |
###### For CentOS: |
| 27 |
(Python 3 packages for CentOS are not provided.) |
| 28 |
|
| 29 |
#### Step 1: Install packages for Junos PyEZ |
| 30 |
|
| 31 |
sudo yum install libxml2-devel libxslt-devel gcc openssl-devel libffi-devel redhat-rpm-config |
| 32 |
|
| 33 |
#### Step 2: Install Junos PyEZ |
| 34 |
|
| 35 |
##### For Python 2.x: |
| 36 |
sudo pip install junos-eznc |
| 37 |
|
| 38 |
##### For Python 3.x: |
| 39 |
sudo pip3 install junos-eznc |
| 40 |
|
| 41 |
#### Step 3: Verify |
| 42 |
|
| 43 |
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. |
| 44 |
|
| 45 |
Enjoy! |
| 46 |
|
| 47 |
|
| 48 |
#### Installing from GitHub |
| 49 |
|
| 50 |
Development code can be installed directly from GitHub based on any branch, commit, or tag. |
| 51 |
|
| 52 |
***Steps 1 -3 are still required.*** |
| 53 |
#### Alternate Step 4: Install Junos PyEZ from GitHub |
| 54 |
|
| 55 |
#### Step 4a: Install Git from OS packages |
| 56 |
sudo yum install git |
| 57 |
|
| 58 |
#### Step 4b: Install Junos PyEZ from GitHub |
| 59 |
|
| 60 |
##### For Python 2.x: |
| 61 |
sudo pip install git+https://github.com/Juniper/py-junos-eznc.git |
| 62 |
or |
| 63 |
sudo pip install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit> |
| 64 |
|
| 65 |
##### For Python 3.x: |
| 66 |
sudo pip3 install git+https://github.com/Juniper/py-junos-eznc.git |
| 67 |
or |
| 68 |
sudo pip3 install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit> |