RTR Substitution
Project description
rtrsub - RTR Substitution
A substitute for the RTR protocol: generate configuration blobs for your routers instead of using the RTR protocol to interact with RPKI.
Installation
pip3 install rtrsub
Use
Templates are in jinja2 format. Thanks to the template approach, you can adopt this tool to any platform or routing policy configuration style.
Review the bird.j2 for an example.
There are a number of variables available to the template, please review the JSON example.
hanna:rtrsub job$ rtrsub -h
usage: rtrsub [-h] [-c CACHE] --afi AFI [-t TEMPLATE] [-o OUTPUT] [-v]
optional arguments:
-h, --help show this help message and exit
-c CACHE Location of the RPKI Cache in JSON format
(default: https://console.rpki-client.org/vrps.json)
--afi AFI [ ipv4 | ipv6 | mixed ]
-t TEMPLATE Template file (default: STDIN)
-o OUTPUT Output file (default: STDOUT)
-v Display rtrsub version
hanna:rtrsub job$
Vurt:rtrsub job$ rtrsub --afi ipv4 -t template-examples/bird.j2 -o example-output.conf
Vurt:rtrsub job$
or
Vurt:rtrsub job$ rtrsub --afi ipv4 < template-examples/bird.j2 > example-output.conf
Vurt:rtrsub job$
Copyright (c) 2016-2018 Job Snijders job@instituut.net
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
rtrsub-1.1.0.tar.gz
(5.1 kB
view details)
File details
Details for the file rtrsub-1.1.0.tar.gz
.
File metadata
- Download URL: rtrsub-1.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9cbe53d80c1463a7371e1780dd0199dd038a35df023eb77329a73249975415c |
|
MD5 | 1524ed38c076dc62d17470bd63bbcb73 |
|
BLAKE2b-256 | 57139e9b72781fc23fb0ca7f9401586e1e570fc530764d4b386ae73ec551da0a |