dropbox / nsot

Network Source of Truth is an open source IPAM and network inventory database
https://nsot.readthedocs.io
Other
399 stars 66 forks source link

Implementation of Circuit #232

Closed coxley closed 7 years ago

coxley commented 7 years ago

203

This is a first iteration. It's pretty weak, I'll admit. Even with a device or interface id, I don't think you can query the circuits like we would want. This is mostly because I lack familiarity with Django, DRF, and the existing work here.

Ideally I think we would want to be able to do:

GET /api/sites/:id/devices/:id/circuits
GET /api/sites/:id/interfaces/:id/circuits

This does work, though, for relating and browsing in the API. I mostly want to get discussion sparked here and get help with the rest.

http://imgur.com/a/Dsftn

coxley commented 7 years ago

I have:


GET /api/site/:id/interfaces/:id/circuit/

GET /api/site/:id/circuits/:id/devices/
GET /api/site/:id/circuits/:id/interfaces/
GET /api/site/:id/circuits/:id/addresses/
coxley commented 7 years ago

I've added validation for a_endpoint and z_endpoint to do the cross-over checks.

jathanism commented 7 years ago

I've taken over this feature and will be replacing it with a new PR.