Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.65 KB

INSTALL-UBUNTU-DEBIAN.md

File metadata and controls

60 lines (38 loc) · 1.65 KB

Installation on stock Ubuntu and Debian

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 2.1.0.

Operating Systems

  • Ubuntu 16.10
  • Ubuntu 16.04
  • Ubuntu 15.10
  • Ubuntu 15.04
  • Debian 8.7
  • Debian 8.6

Step 1: Update package list

sudo apt-get update

Step 2: Install Python and PIP

For Python 2.x:
    sudo apt-get install python-dev
    wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python
For Python 3.x:
    sudo apt-get install python3-dev
    wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python3

Step 3: Install OS packages required by Junos PyEZ and it's

pre-requisite Python packages

sudo apt-get install libxslt1-dev libssl-dev libffi-dev

Step 4: Install Junos PyEZ

sudo pip install junos-eznc

Step 5: Verify

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!

Installing from GitHub

Development code can be installed directly from GitHub based on any branch, commit, or tag.

Steps 1 -3 are still required.

Alternate Step 4: Install Junos PyEZ from GitHub

Step 4a: Install Git from OS packages

sudo apt-get install git

Step 4b: Install Junos PyEZ from GitHub

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>