[PDB Tech] PeeringDB API Discrepency

James Bensley jwbensley at gmail.com
Fri Sep 9 07:29:55 PDT 2016


Hi All,

When using the API to look at a random network I see a possible
difference in behavior between the API and the web interface.

https://www.peeringdb.com/api/net/21

info_prefixes4": null, "info_prefixes6": 0

Here we see it says "0" for both values: https://www.peeringdb.com/net/21

Has the user/network actually set "0" for v6 prefix count and given no
value for the v4 count so the DB is returning 0 and null respectively,
or is it a discrepancy in behavior; for v6 if there is no value is the
DB defaulting to 0 value but for v4 defaulting to null?

Sorry if this is a known issue.

Cheers,
James.


More information about the Pdb-tech mailing list