Follow these steps to get started:
- Verify you are running python 3.9 or above ('python3 --version')
- Install requirements from 'requirements.txt' file ('python3 -m pip install -r requirements.txt')
- Run grab_routes.py with the required arguments of 'python3 grab_bgp_routes.py -u Username -d IP(s)'
- Enter your password for device login when prompted
- Script will run and will output to screen and file the results
Example for multiple IP's (devices):
python3 grab_bgp_routes.py -u testuser -d 1.1.1.1 2.2.2.2 3.3.3.3
It is recommended you use VSCode as an IDE and install the "flake8" and "Python" extensions. With VSCode you can directory open the Git Repository and setup a Python Virtual Environment which is shown here: https://code.visualstudio.com/docs/python/environments#_creating-environments
You can then follow the steps above to install the requirements into the Python Virtual Environment.