Whitespace fixes

This commit is contained in:
Brad Hall 2011-06-03 10:26:36 -07:00
parent bee2ea21aa
commit 90a78e410c
2 changed files with 18 additions and 24 deletions

View File

@ -56,7 +56,6 @@ class APIRouterV01(wsgi.Router):
parent_resource=dict(member_name='network',
collection_name=\
uri_prefix + 'networks'))
mapper.connect("get_resource",
uri_prefix + 'networks/{network_id}/' \
'ports/{id}/attachment{.format}',

View File

@ -32,12 +32,10 @@ class Controller(common.QuantumController):
'default-value': 'DOWN',
'required': False},]
_attachment_ops_param_list = [{
'param-name': 'attachment-id',
'required': True},]
_serialization_metadata = {
"application/xml": {
"attributes": {
@ -120,7 +118,6 @@ class Controller(common.QuantumController):
except exception.StateInvalid as e:
return faults.Fault(faults.RequestedStateInvalid(e))
def delete(self, req, tenant_id, network_id, id):
""" Destroys the port with the given id """
#look for port state in request
@ -135,7 +132,6 @@ class Controller(common.QuantumController):
except exception.PortInUse as e:
return faults.Fault(faults.PortInUse(e))
def get_resource(self,req,tenant_id, network_id, id):
try:
result = self.network_manager.get_interface_details(
@ -170,7 +166,6 @@ class Controller(common.QuantumController):
except exception.AlreadyAttached as e:
return faults.Fault(faults.AlreadyAttached(e))
#TODO - Complete implementation of these APIs
def detach_resource(self,req,tenant_id, network_id, id):
try: