| 1 |
### Installation on stock FreeBSD |
| 2 |
|
| 3 |
The following are instructions for setting up a system starting from a stock system image. |
| 4 |
|
| 5 |
Operating Systems |
| 6 |
--------------- |
| 7 |
- FreeBSD 10.4 |
| 8 |
- FreeBSD 11.1 |
| 9 |
|
| 10 |
FreeBSD contains py-junos-eznc in its official repositories. It could be installed from binary packages using pkg package manager or built from sources using ports collection. |
| 11 |
|
| 12 |
## Installing from binary packages. |
| 13 |
|
| 14 |
##### For Python 2.7 |
| 15 |
sudo pkg install py27-junos-eznc |
| 16 |
|
| 17 |
##### For Python 3.6 |
| 18 |
sudo pkg install py36-junos-eznc |
| 19 |
|
| 20 |
## Installing from ports collection |
| 21 |
|
| 22 |
#### For Python 2.7 |
| 23 |
sudo make -C /usr/ports/net-mgmt/py-junos-eznc install clean FLAVOR=py27 |
| 24 |
|
| 25 |
#### For Python 3.6 |
| 26 |
sudo make -C /usr/ports/net-mgmt/py-junos-eznc install clean FLAVOR=py36 |
| 27 |
|
| 28 |
## Verify |
| 29 |
|
| 30 |
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. |
| 31 |
|
| 32 |
Enjoy! |
| 33 |
|
| 34 |
|
| 35 |
## Installing from GitHub |
| 36 |
|
| 37 |
Development code can be installed directly from GitHub based on any branch, commit, or tag. |
| 38 |
|
| 39 |
***Packages from Steps 1 and 2 are required.*** |
| 40 |
|
| 41 |
sudo pkg install git |
| 42 |
sudo pip install git+https://github.com/Juniper/py-junos-eznc.git |
| 43 |
|
| 44 |
or |
| 45 |
|
| 46 |
sudo pip install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit> |