Revision f8714db8 snf-cyclades-app/synnefo/db/pools/__init__.py

b/snf-cyclades-app/synnefo/db/pools/__init__.py
279 279
    def __init__(self, pool_table):
280 280
        subnet = pool_table.subnet
281 281
        self.net = ipaddr.IPNetwork(subnet.cidr)
282
        self.offset = pool_table.offset
283
        self.base = pool_table.base
282 284
        if pool_table.available_map:
283 285
            initialized_pool = True
284 286
        else:
......
287 289
        if not initialized_pool:
288 290
            self.check_pool_integrity()
289 291

  
290
    def check_pool_integtiry(self):
292
    def check_pool_integrity(self):
291 293
        """Check the integrity of the IP pool
292 294

  
293 295
        This check is required only for old IP pools(one IP pool per network

Also available in: Unified diff