Manipulate RIPE objects through RIPE REST-API
python ripe.py --help
usage: ripe.py [-h] --db DB [--objects OBJECTS] [--dryrun] [--pwd PWD]
[--search SEARCH] [--attribute ATTRIBUTE]
optional arguments:
-h, --help show this help message and exit
--db DB Database URL
--objects OBJECTS Objects to compare / write
--dryrun Perform validation and not the upgrade
--pwd PWD Password needed to write objects
--search SEARCH Search for a particular string
--attribute ATTRIBUTE
Search for a specific attribute
For example to do reverse lookups on objects based on strings, to populate a yaml file:
$ ripe.py --db https://rest.db.ripe.net --search maintainer_name --attribute mnt-by
or
$ ripe.py --db https://rest.db.ripe.net --search org_name --attribute org
Updating and creating objects is supported but must be treated as experimental.
yaml file example (subject to changes):
JD666-RIPE:
- person: John Doe
- address: 133 Cambridge Road
- address: London UK
- phone: +6 555 444 333
- e-mail: [email protected]
- nic-hdl: JD666-RIPE
- mnt-by: your-mnter
- source: RIPE
can be written into the RIPE.NET DB with:
$ ripe.py --db https://rest.db.ripe.net --objects objects_test/ripe_write.yaml --pwd $PW
Only password authentication is supported for now. You can also export your password using the
RIPE_PASSWORD
env var.