[PDB-tech] API - question about ixlan and netix

Matt Griswold grizz at 20c.com
Sun Jun 21 20:29:34 PDT 2015


* Andy Linton <asjl at nsrc.org> [150622 14:38 +1200]:
> I'm keen to get an answer on this - is there a different place I
>   should ask these questions?
Sorry, embarrassed to admit I just realized I wasn't subscribed to the
lists a few hours ago.

Server side querying for that will happen with
https://github.com/peeringdb/1to2/issues/8 - which is next on our list.
Currently, it's just download everything and sort through it on your
side, would it help to have better docs for that?

> On Thu, Jun 18, 2015 at 10:46 AM, Andy Linton <asjl at nsrc.org> wrote:
> > So I'm trying to do this using the API and I can see that I can
> >   look at the 'netix' API data and work out who peers at each
> >   unique "ix_lan" instance. For example, I can deduce that ix_lan
> >   == 114 means the WIX-NZ. My network has:
> >
> >     {
> >       "network": 7662,
> >       "ix_lan": 114,
> >       "notes": "",
> >       "speed": 4,
> >       "asn": 132003,
> >       "ipaddr4": "202.7.0.190",
> >       "ipaddr6": "2001:7fa:3:ca07::be"
> >     },
> >
> >
> >
> > But if I look for this ID in the 'ixlan' API data there's no entry
> >   for 114 and there appears to be no way to map this back to the
> >   'ix' entry for WIX-NZ which has id == 132
> >
> > I'm guessing that the 'ixlan' data is not populated in any
> >   meaningful way as all entries seem to be of this form:
> >
> >    {
> >       "ix": 11017,
> >       "name": "",
> >       "descr": "",
> >       "mtu": null,
> >       "dot1q_support": false,
> >       "rs_asn": 0
> >     },
> >
> > Am I missing something here?
The ixlan itself is currently unpopulated (since the data isn't in
PeeringDB), but will be populated in part from IXF, and once it's
available, IXes will be able to populate it themselves. It should have a
list of the networks on it, I've created that bug here:
https://github.com/peeringdb/1to2/issues/40

Again, if you download all the data you can form these queries on your
own.



More information about the Pdb-tech mailing list