Commit 754d0a2c authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Exclude FIP pools from IP allocation

Do not include the floating IP pools, to the available public networks
when allocating an IPv4 address, when 'SNF:ANY_PUBLIC' option is used.
parent 10f62991
......@@ -295,8 +295,9 @@ def backend_public_networks(backend):
"""
bnets = BackendNetwork.objects.filter(backend=backend,
network__public=True,
network__subnet__isnull=False,
network__deleted=False,
network__floating_ip_pool=False,
network__subnet__isnull=False,
network__drained=False)
return [b.network for b in bnets]
......
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