Revision ab419f67 snf-cyclades-app/synnefo/db/migrations/0052_migrate_pool_entries.py
b/snf-cyclades-app/synnefo/db/migrations/0052_migrate_pool_entries.py | ||
---|---|---|
37 | 37 |
bridges = orm.BridgePool.objects.all() |
38 | 38 |
if bridges: |
39 | 39 |
try: |
40 |
# Do NOT import external code as can be depricated when the |
|
41 |
# migration will run |
|
40 | 42 |
pool_prefix = settings.PRIVATE_PHYSICAL_VLAN_BRIDGE_PREFIX |
41 | 43 |
except AttributeError: |
42 | 44 |
pool_prefix = '' |
... | ... | |
65 | 67 |
mac_prefixes = orm.MacPrefixPool.objects.all() |
66 | 68 |
if mac_prefixes: |
67 | 69 |
try: |
70 |
# Do NOT import external code as can be depricated when the |
|
71 |
# migration will run |
|
68 | 72 |
macp_base = settings.MAC_POOL_BASE |
69 | 73 |
except AttributeError: |
70 | 74 |
first = mac_prefixes[0] |
Also available in: Unified diff