title = 'Network in Use'
explanation = ('Unable to remove the network: attachments still plugged.')
+
class NetworkNameExists(webob.exc.HTTPClientError):
"""
subclass of :class:`~HTTPClientError`
"%(port_id)s for network %(net_id)s. The attachment is " \
"already plugged into port %(att_port_id)s")
+
class NetworkNameExists(QuantumException):
message = _("Unable to set network name to %(net_name). " \
"Network with id %(net_id) already has this name for " \
# that net-names are unique within a tenant
pass
+
def network_create(tenant_id, name):
session = get_session()
session.flush()
return net
+
def network_destroy(net_id):
session = get_session()
try:
port = port_get(port_id, net_id)
port.interface_id = None
session.merge(port)
- session.flush
+ session.flush()
def port_destroy(port_id, net_id):