Commit 5eeccf07 authored by Christos Stavrakakis's avatar Christos Stavrakakis

cyclades: Order pools by id

parent f9cee094
......@@ -84,7 +84,7 @@ def allocate_ip(network, userid, address=None, floating_ip=False):
" 'SNF:DRAINED' status" % network.id)
ip_pools = IPPoolTable.objects.select_for_update()\
.filter(subnet__network=network)
.filter(subnet__network=network).order_by('id')
try:
return allocate_ip_from_pools(ip_pools, userid, address=address,
floating_ip=floating_ip)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment