A python toolkit for prefix filter list management operations.
Project description
RPTK - Routing Policy Tool Kit
Python toolkit for prefix filter list management operations with plugable modules for query and output handling.
Features
- Command-line
rptk
tool - Simple python api module
- Flask-based web-query api
- Query modules:
- native python query module
- bgpq3 shell wrapper
- Format modules
- JSON output
- YAML output
- IOS classic/XE style prefix-lists
- JunOS prefix-lists
- BIRD prefix-lists
- ...more coming soon
Getting Started
-
Install from pip:
$ pip install rptk
-
Run bgpq3 installer script, if not already installed:
$ cd $PREFIX/share/rptk/utils/ $ ./install-bgpq3.sh
-
Customise settings in
rptk.conf
as necessary:$ cd $PREFIX/etc/rptk/ $ cp rptk.conf.example rptk.conf $ vi rptk.conf
-
Check that test queries are working on the command line:
$ rptk -F ios -Q bgpq3 AS-WOLCOMM
-
Check that test queries are working on the web API:
$ rptk-web $ curl http://localhost:8080/ios/AS-WOLCOMM
Refer to setup.md for addtional steps to setup the online web-api help pages.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rptk-0.2.0.tar.gz
(21.3 kB
view details)
Built Distribution
rptk-0.2.0-py2.py3-none-any.whl
(28.4 kB
view details)
File details
Details for the file rptk-0.2.0.tar.gz
.
File metadata
- Download URL: rptk-0.2.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff15eeb1381dd1742783bd5f24d49effb72c528b02f1543fb09e8bd28e60229 |
|
MD5 | 682cfc6014654cd56cf827bed1246211 |
|
BLAKE2b-256 | fe78f3b6d6ca70fb04327f228729a51386c288794f60bd4da62ee988a6f90351 |
File details
Details for the file rptk-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: rptk-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce45fdcdc64edb19f5c710bfaa13624c7584eadea6105350f8dcef6be31af8d4 |
|
MD5 | 5ee80872a1503793b53550c692d9115e |
|
BLAKE2b-256 | 330de0359bec8e6764feac560a60ca202b50ebf39143746de1b72f23786c34fb |