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

Fix #223: Enhance Network "get_next" methods to optionally allocate/reserve at the same time #266

Closed rmhasan closed 6 years ago

rmhasan commented 7 years ago

Users can send a post request to next_network and next_address actions. If it is a post request then the action will get the networks or addresses and then save them as network objects in the database as allocated. If the user sends the reserve flag and sets it as true, then it will be saved in the reserved state.

rmhasan commented 7 years ago

Hi @nickpegg I added the following changes

EDIT:

jathanism commented 7 years ago

@rmhasan We miss you! <3

rmhasan commented 7 years ago

Hi @jathanism, sorry I've been gone for so long. I implemented the changes you asked for, please take a look when you get a chance.

jathanism commented 7 years ago

@rmhasan Awesome! Welcome back. This is great! We'll go ahead and get this released soon. :)