Skip to main content

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.

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](../master/template-examples/bird.j2) for an example.

The dictionary available to the template is called `data`. Layout of the
dictionary is as following:

```
{
'151.232.23.0/24': {
'origins': [59587]
},
'31.5.128.0/17': {
'origins': [6830]
},
'84.218.240.0/20': {
'origins': [2119]
}
... etc etc ...
}
```

```
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: http://localcert.ripe.net:8088/export.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$ python rtrsub/cli.py --afi ipv4 -t template-examples/bird.j2 -o example-output.conf
Vurt:rtrsub job$
```

or

```
Vurt:rtrsub job$ python rtrsub/cli.py --afi ipv4 < template-examples/bird.j2 > example-output.conf
Vurt:rtrsub job$
```

Copyright (c) 2016 Job Snijders <job@instituut.net>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtrsub-0.0.5.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file rtrsub-0.0.5.tar.gz.

File metadata

  • Download URL: rtrsub-0.0.5.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rtrsub-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5165a40580c8bbbf9e6f26bfa41cb2d80bf1aadcb54fd52a515e01c24c3f0cb0
MD5 5051c77e0994666d2e45437c69f6f67f
BLAKE2b-256 decfad2deaffcd65c9be316a0130c2954e0177ce03f2547d8fb871a589c27fa8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page