Revision 6176e251 snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
503 | 503 |
network.id, network.mac_prefix, network.link) |
504 | 504 |
network.deleted = True |
505 | 505 |
network.state = "DELETED" |
506 |
# Undrain the network, otherwise the network state will remain |
|
507 |
# as 'SNF:DRAINED' |
|
508 |
network.drained = False |
|
506 | 509 |
if network.mac_prefix: |
507 | 510 |
if network.FLAVORS[network.flavor]["mac_prefix"] == "pool": |
508 | 511 |
release_resource(res_type="mac_prefix", |
Also available in: Unified diff