Prefix list formats: advice needed
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Howdy. For a tool we're writing, we need to be able to accept lists of prefixes people might want to BGP advertise. We'd like to be "liberal in what we accept" and recognize lists formatted in as many ways as people think they might reasonably have. There are some obvious ones: - Delimited lists of CIDR-format addresses. This would include addresses in "slash" notation, with some punctuation or whitespace between them. That would cover a lot of hand-typed and tool- generated lists, as well as Juniper-format prefix lists. - One-address-per-line, CIDR-format, with other non-address stuff in the line. This would include Cisco ip prefix-list format, most IRR whois, and some RIR whois. - One-address-per-line, with separate address mask in normal order (ones values on the left, zeros values on the right), with other non- address stuff in the line, some of which might look like more addresses. This would include Cisco ip route statements. - One-address-per-line, with separate address mask in reverse order (zeros values on the left, ones values on the right), with other non-address stuff in the line, some of which might look like more addresses. This would include Cisco ip access-list statements. - Address-ranges, characterized by a starting address and an ending address, perhaps with a hyphen between them. This would include many older RIR whois entries. Can anyone think of any other formats people are likely to have lists of prefixes in? Thanks much, -Bill -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFFqqrfGvQy4xTRsBERAt/7AKClUXCT3N5NJBGVReildfMO/xQjMACcDDDH 1EEYeKq71UiayuppDXHu3Yo= =uQ03 -----END PGP SIGNATURE-----
On Jan 14, 2007, at 2:12 PM, Bill Woodcock wrote:
Howdy. For a tool we're writing, we need to be able to accept lists of prefixes people might want to BGP advertise.
Bill, what is the purpose of your tool? Does it parse router configs? ----------------------------------------------------------------------- Roland Dobbins <rdobbins@cisco.com> // 408.527.6376 voice Technology is legislation. -- Karl Schroeder
participants (2)
-
Bill Woodcock
-
Roland Dobbins