<div dir="ltr">Hi,<div><br></div><div>I've been giving the peeringdb python module a try. I ran into a couple of issues, perhaps somebody can help me out here. I'm using peeringdb, version 0.4.2</div><div><br></div><div>- sync issue, "peeringdb sync" throws an error. I don't think I got this on the initial sync</div><div><br></div><div><div>  File "/usr/local/lib/python2.7/dist-packages/django_peeringdb/management/commands/pdb_sync.py", line 127, in update_db</div><div>    sync.sync_obj(cls, row)</div><div>  File "/usr/local/lib/python2.7/dist-packages/django_peeringdb/sync.py", line 25, in sync_obj</div><div>    obj.full_clean()</div><div>  File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 1171, in full_clean</div><div>    raise ValidationError(errors)</div><div>django.core.exceptions.ValidationError: {'org': [u'organization instance with id 4755 does not exist.']}</div></div><div><br></div><div>- Errors on existing net objects. I keep getting errors when trying to retrieve net objects. For example</div><div>$ peeringdb get net433<br></div><div>...</div><div><div>  File "/usr/local/lib/python2.7/dist-packages/twentyc/rpc/client.py", line 88, in _load</div><div>    self._throw(res, data)</div><div>  File "/usr/local/lib/python2.7/dist-packages/twentyc/rpc/client.py", line 68, in _throw</div><div>    raise NotFoundException("%d %s" % (res.status_code, err))</div><div>twentyc.rpc.client.NotFoundException: 404 Unknown</div></div><div><br></div><div>Org 433 is present in the local db</div><div><div>mysql> select id, name, asn  from peeringdb_network where id=433;</div><div>+-----+-------------+-------+</div><div>| id  | name        | asn   |</div><div>+-----+-------------+-------+</div><div>| 433 | Google Inc. | 15169 |</div><div>+-----+-------------+-------+</div><div>1 row in set (0.00 sec)</div></div><div><br></div><div>- Is it possible to output all net objects on the cli?</div><div>    peeringdb get net --> doesn't work</div><div><br></div><div>It seems to work in the client</div><div><br></div><div><div>>>> from peeringdb.client import PeeringDB</div><div>>>> pdb = PeeringDB()</div><div>>>> pdb.all('net')</div></div><div>...</div><div><br></div><div><br></div><div>Thanks,</div><div>-Jeroen-</div></div>