from webob import exc
from extensions import _novatenant_view as novatenant_view
-from extensions import _exceptions as exception
+from quantum.common import exceptions as qexception
+#from extensions import _exceptions as exception
from extensions import _faults as faults
from quantum.api import api_common as common
result = builder.build_host(host)
return result
#return exc.HTTPAccepted()
- except exception.NovatenantNotFound as exp:
- return faults.Fault(faults.NovatenantNotFound(exp))
- except exception.PortNotFound as exp:
+ except qexception.PortNotFound as exp:
return faults.Fault(faults.PortNotFound(exp))
def get_instance_port(self, request, tenant_id, id):
result = builder.build_vif(vif)
return result
- except exception.NovatenantNotFound as exp:
- return faults.Fault(faults.NovatenantNotFound(exp))
- except exception.PortNotFound as exp:
+ except qexception.PortNotFound as exp:
return faults.Fault(faults.PortNotFound(exp))
from webob import exc
from extensions import _pprofiles as pprofiles_view
-from extensions import _exceptions as exception
+from quantum.plugins.cisco.common import cisco_exceptions as exception
+from quantum.common import exceptions as qexception
+#from extensions import _exceptions as exception
from extensions import _faults as faults
from quantum.api import api_common as common
#build response with details
result = builder.build(portprofile, True)
return dict(portprofiles=result)
- except exception.PortprofileNotFound as exp:
+ except exception.PortProfileNotFound as exp:
return faults.Fault(faults.PortprofileNotFound(exp))
#return faults.Fault(exp)
builder = pprofiles_view.get_view_builder(request)
result = builder.build(portprofile, True)
return dict(portprofiles=result)
- except exception.PortprofileNotFound as exp:
+ except exception.PortProfileNotFound as exp:
return faults.Fault(faults.PortprofileNotFound(exp))
def delete(self, request, tenant_id, id):
try:
self._plugin.delete_portprofile(tenant_id, id)
return exc.HTTPAccepted()
- except exception.PortprofileNotFound as exp:
+ except exception.PortProfileNotFound as exp:
return faults.Fault(faults.PortprofileNotFound(exp))
def associate_portprofile(self, request, tenant_id, id):
net_id, port_id,
id)
return exc.HTTPAccepted()
- except exception.PortprofileNotFound as exp:
+ except exception.PortProfileNotFound as exp:
return faults.Fault(faults.PortprofileNotFound(exp))
- except exception.PortNotFound as exp:
+ except qexception.PortNotFound as exp:
return faults.Fault(faults.PortNotFound(exp))
def disassociate_portprofile(self, request, tenant_id, id):
disassociate_portprofile(tenant_id,
net_id, port_id, id)
return exc.HTTPAccepted()
- except exception.PortprofileNotFound as exp:
+ except exception.PortProfileNotFound as exp:
return faults.Fault(faults.PortprofileNotFound(exp))
- except exception.PortNotFound as exp:
+ except qexception.PortNotFound as exp:
return faults.Fault(faults.PortNotFound(exp))