Revision d9c36253 snf-cyclades-app/synnefo/logic/ports.py

b/snf-cyclades-app/synnefo/logic/ports.py
56 56
@transaction.commit_on_success
57 57
def create(network, machine, name="", security_groups=None,
58 58
           device_owner='vm'):
59

  
59
    """Create a new port by giving a vm and a network"""
60 60
    if network.state != 'ACTIVE':
61 61
        raise faults.Conflict('Network build in process')
62 62

  
......
87 87

  
88 88
    return port
89 89

  
90

  
91 90
@transaction.commit_on_success
92 91
def delete(port):
93 92
    """Delete a port by removing the NIC card the instance.

Also available in: Unified diff