This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Setup Guide
TiTom edited this page Nov 12, 2015
·
2 revisions
This section will describe how to setup this demo environment and will focus on how to install all required libraries
To be able to run scripts on your environment, you have to ensure all modules below are installed: List of required modules:
- yaml
- sys
- os
- argparse
- glob
- jinja2
- pprint
- optparse
- jnpr
- datetime
- logging
- re
Most of them are included in Python by default. For other modules, run the following commands:
- Junos-py-ez
More documentation available at https://github.com/Juniper/py-junos-eznc
pip install junos-eznc
- argparse Module
pip install argparse
- optparse Module
pip install optparse
- YAML Module
pip install yaml
- Jinja2
pip install jinja2
In order to test your environment, you can execute the script check_env.py
. It will display status for all required modules:
python check_env.py
* yaml is installed
* sys is installed
* os is installed
* argparse is installed
* glob is installed
* jinja2 is installed
* pprint is installed
* optparse is installed
* jnpr is installed
* datetime is installed
* logging is installed
* re is installed
If a specific module is not yet installed on your environment, then you should see an entry like below:
* egg is MISSING (use pip install egg)