Closed rmhasan closed 6 years ago
Hi @nickpegg I added the following changes
is_ip
from the next_network
and next_address
views.model.Network
, for the is_ip
field I set editable
to False.next_network
and next_address
views, I use the RESERVED
and ALLOCATED
constants from
the model.Network
classnext_network
and next_address
views, I moved the network.get_next_network
function
call out of the if clause, and set the as_objects
paramter to True. Also I removed the else clausenext_network
and
next_address
EDIT:
Interface
model functions get_ancestors
and get_descendants
, I am removing
a separate list for id's. This change makes the functions more space efficient. @rmhasan We miss you! <3
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.
@rmhasan Awesome! Welcome back. This is great! We'll go ahead and get this released soon. :)
Users can send a post request to
next_network
andnext_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 asallocated
. If the user sends thereserve
flag and sets it as true, then it will be saved in thereserved
state.