Revision fdc94944 snf-cyclades-app/synnefo/logic/allocators/default_allocator.py
b/snf-cyclades-app/synnefo/logic/allocators/default_allocator.py | ||
---|---|---|
75 | 75 |
def has_free_ip(backend): |
76 | 76 |
"""Find if Backend has any free public IP.""" |
77 | 77 |
for network in backend_public_networks(backend): |
78 |
if not network.pool.is_full():
|
|
78 |
if not network.get_pool().empty():
|
|
79 | 79 |
return True |
80 | 80 |
return False |
Also available in: Unified diff