On 14.03.2017 23:43, Neil Lathwood wrote:
>     PDB is built to be used. Go call the /asn/nnnn endpoint to get the
>     name. BTW: Keep in mind that the name of a network may not be the
>     same on PDB as it is via whois on an RIR (or RADB). The name of a
>     network used for peering is sometimes "unique".
> 
> 
> Thanks for the reply Martin, this would involve a call for every peer on
> an Exchange - that will equate to a large number of api hits per install
> so could mount up.
> 

If you are worried about the number of api calls try this. Build a list
of peers asn1, asn2, ... asnn and then call

 /net?asn__in=asn1,asn2,...asnn

That way it's only one call. Or simply do

 /net

and look for the (asn,name) pair in the answer.


Arnold

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pdb-tech mailing list
[email protected]
http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech

Reply via email to