Revision 3f18f035 snf-cyclades-app/synnefo/logic/servers.py

b/snf-cyclades-app/synnefo/logic/servers.py
456 456
    if network.state != "ACTIVE":
457 457
        raise faults.BuildInProgress("Can not create port while network is in"
458 458
                                     " state %s" % network.state)
459
    if network.action == "DESTROY":
460
        msg = "Can not create port. Network %s is being deleted."
461
        raise faults.Conflict(msg % network.id)
459 462
    ipaddress = None
460 463
    if use_ipaddress is not None:
461 464
        # Use an existing IPAddress object.

Also available in: Unified diff