Commit ef503914 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix bug and typo in IPPool

parent 14dcecce
......@@ -279,6 +279,8 @@ class IPPool(PoolManager):
def __init__(self, pool_table):
subnet = pool_table.subnet = ipaddr.IPNetwork(subnet.cidr)
self.offset = pool_table.offset
self.base = pool_table.base
if pool_table.available_map:
initialized_pool = True
......@@ -287,7 +289,7 @@ class IPPool(PoolManager):
if not initialized_pool:
def check_pool_integtiry(self):
def check_pool_integrity(self):
"""Check the integrity of the IP pool
This check is required only for old IP pools(one IP pool per network
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