Revision 660b9f3b snf-cyclades-app/synnefo/api/floating_ips.py
b/snf-cyclades-app/synnefo/api/floating_ips.py | ||
---|---|---|
135 | 135 |
try: |
136 | 136 |
if pool is None: |
137 | 137 |
# User did not specified a pool. Choose a random public IP |
138 |
network, address = util.allocate_public_ip(net_objects)
|
|
138 |
network, address = util.get_free_ip(net_objects)
|
|
139 | 139 |
else: |
140 | 140 |
try: |
141 | 141 |
network = Network.objects.select_for_update()\ |
Also available in: Unified diff