Hi Stavros! On 2015-08-19 16:00, Stavros Konstantaras wrote: [...]
* George, yes you are right. This should be the #1 step, take corresponding RPSL RFCs and implement them in Python.
A word of caution here... While this suggestion is probably a sound one, formally, everyone needs to be aware that the set of RFCs out there is ancient. Not all of the provisions in the documents have been implemented (in some or all IRRs) and, ototh, some IRRs did implement some (minor?) extensions which never made it back into updated documents. But I guess you are aware of that. FWIW, Wilfried
However, that would take too much time and will not allow us to work on other missing functionalities of the prototype. And we would like to have something ready at the beginning of November. However, I will check your solution as well.
I hope now that I made myself more clear. Big thanks to everyone, every help, info or idea is kindly appreciated.
Kind Regards Stavros
---- Stavros Konstantaras Internet Research Engineer, NLnet Labs Science Park 400, 1098 XH, Amsterdam
Fingerprint: 4502 7D16 2DF8 ADB0 4AA6 21A9 BF9E EFFF 2744 FE5D
On 19 Aug 2015, at 14:39, Tomas Hlavacek <tomas.hlavacek@nic.cz> wrote:
Hi Stavros!
On 08/19/2015 02:15 PM, Ondrej Filip wrote:
Vis o necem?
-------- Forwarded Message -------- Subject: [opensource-wg] Question for RPSL Parser Date: Wed, 19 Aug 2015 14:13:58 +0200 From: Stavros Konstantaras <stavros@nlnetlabs.nl> To: db-wg@ripe.net CC: opensource-wg@ripe.net
Hi all WG members,
For my project at NLnet Labs I would like to ask you if you know any (relatively) complete RPSL parser written in *Python*. I searched around and I didnât find anything. Does someone know any repository where I can get one or maybe contact someone who has written one?
It depends on what you need... I wrote one - https://github.com/tmshlvck/bgpcrunch , but the aim was rather data analysis than "authoritative" RPSL translation. When it comes to filter interpretation my approach is quite "heuristic" and it is focused on speed and ability to take short-cuts which wouldn't be possible with full parsing the RPSL objects according to EBNF metasyntax.
Have you considered creating simple Python interface for peval from IRRToolSet? It might do the job if you don't need any special features.
Cheers, Tomas