openwisp / django-ipam

The development of this project has moved to openwisp-ipam
https://github.com/openwisp/openwisp-ipam
BSD 3-Clause "New" or "Revised" License
78 stars 28 forks source link

IP Request Module #6

Closed anurag-ks closed 6 years ago

anurag-ks commented 6 years ago

This feature would allow users to request an IP address from a specific subnet. For this we would query for the first unused IP address belonging to our selected subnet with the help of Django’s QuerySet API. Subnet.objects.filter(ip_address__used=false)[:1].get()