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.dev1.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for rptk-0.2.0.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aecc38c0470ee1b211f46a1609d8ecf6cb55a814e413456c61c3b393cbf628a |
|
MD5 | ee17a520e176c3b3dc582f7bc6b84b5d |
|
BLAKE2b-256 | 6387a6559cc2de989c10efd703b0a3cd366680c2cd71aa6d051e7d7a9bd42a17 |