Revision a96e84cf snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
466 | 466 |
return |
467 | 467 |
elif not network.public: |
468 | 468 |
log.warning("Network %s does not have an owner!", network.id) |
469 |
|
|
470 |
# TODO!!!!! |
|
471 |
# Set all subnets as deleted |
|
472 |
network.subnets.update(deleted=True) |
|
473 |
# And delete the IP pools |
|
474 |
network.subnets.ip_pools.all().delete() |
|
469 | 475 |
network.save() |
470 | 476 |
|
471 | 477 |
|
Also available in: Unified diff