Revision 65044122 snf-cyclades-app/synnefo/db/migrations/0077_migrate_networks_to_subnets.py
b/snf-cyclades-app/synnefo/db/migrations/0077_migrate_networks_to_subnets.py | ||
---|---|---|
20 | 20 |
deleted=network.deleted) |
21 | 21 |
ip_pool = network.pool |
22 | 22 |
if ip_pool is None: |
23 |
ip_pool = IPPoolTable
|
|
23 |
ip_pool = orm.IPPoolTable()
|
|
24 | 24 |
ip_pool.subnet = subnet |
25 | 25 |
ip_pool.base = subnet.cidr |
26 | 26 |
ip_pool.offset = 0 |
Also available in: Unified diff