Whitespace fixes
This commit is contained in:
parent
bee2ea21aa
commit
90a78e410c
@ -56,7 +56,6 @@ class APIRouterV01(wsgi.Router):
|
|||||||
parent_resource=dict(member_name='network',
|
parent_resource=dict(member_name='network',
|
||||||
collection_name=\
|
collection_name=\
|
||||||
uri_prefix + 'networks'))
|
uri_prefix + 'networks'))
|
||||||
|
|
||||||
mapper.connect("get_resource",
|
mapper.connect("get_resource",
|
||||||
uri_prefix + 'networks/{network_id}/' \
|
uri_prefix + 'networks/{network_id}/' \
|
||||||
'ports/{id}/attachment{.format}',
|
'ports/{id}/attachment{.format}',
|
||||||
|
@ -32,12 +32,10 @@ class Controller(common.QuantumController):
|
|||||||
'default-value': 'DOWN',
|
'default-value': 'DOWN',
|
||||||
'required': False},]
|
'required': False},]
|
||||||
|
|
||||||
|
|
||||||
_attachment_ops_param_list = [{
|
_attachment_ops_param_list = [{
|
||||||
'param-name': 'attachment-id',
|
'param-name': 'attachment-id',
|
||||||
'required': True},]
|
'required': True},]
|
||||||
|
|
||||||
|
|
||||||
_serialization_metadata = {
|
_serialization_metadata = {
|
||||||
"application/xml": {
|
"application/xml": {
|
||||||
"attributes": {
|
"attributes": {
|
||||||
@ -120,7 +118,6 @@ class Controller(common.QuantumController):
|
|||||||
except exception.StateInvalid as e:
|
except exception.StateInvalid as e:
|
||||||
return faults.Fault(faults.RequestedStateInvalid(e))
|
return faults.Fault(faults.RequestedStateInvalid(e))
|
||||||
|
|
||||||
|
|
||||||
def delete(self, req, tenant_id, network_id, id):
|
def delete(self, req, tenant_id, network_id, id):
|
||||||
""" Destroys the port with the given id """
|
""" Destroys the port with the given id """
|
||||||
#look for port state in request
|
#look for port state in request
|
||||||
@ -135,7 +132,6 @@ class Controller(common.QuantumController):
|
|||||||
except exception.PortInUse as e:
|
except exception.PortInUse as e:
|
||||||
return faults.Fault(faults.PortInUse(e))
|
return faults.Fault(faults.PortInUse(e))
|
||||||
|
|
||||||
|
|
||||||
def get_resource(self,req,tenant_id, network_id, id):
|
def get_resource(self,req,tenant_id, network_id, id):
|
||||||
try:
|
try:
|
||||||
result = self.network_manager.get_interface_details(
|
result = self.network_manager.get_interface_details(
|
||||||
@ -170,7 +166,6 @@ class Controller(common.QuantumController):
|
|||||||
except exception.AlreadyAttached as e:
|
except exception.AlreadyAttached as e:
|
||||||
return faults.Fault(faults.AlreadyAttached(e))
|
return faults.Fault(faults.AlreadyAttached(e))
|
||||||
|
|
||||||
|
|
||||||
#TODO - Complete implementation of these APIs
|
#TODO - Complete implementation of these APIs
|
||||||
def detach_resource(self,req,tenant_id, network_id, id):
|
def detach_resource(self,req,tenant_id, network_id, id):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user