summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-15 16:50:45 +0000
committerGerrit Code Review <review@openstack.org>2012-08-15 16:50:45 +0000
commit6f924bbeb0dd66f3c5ba2465099f23069d2cacf2 (patch)
tree0d103f3066904d97e9f6c307c10bfc2bfbcc38f9 /nova/exception.py
parent35c12feb8c9467b9b4a7eac7a3f3d63bd620a35b (diff)
parent51ad3d4ee9f28184510a2802867535284c0f1b8b (diff)
downloadnova-6f924bbeb0dd66f3c5ba2465099f23069d2cacf2.tar.gz
nova-6f924bbeb0dd66f3c5ba2465099f23069d2cacf2.tar.xz
nova-6f924bbeb0dd66f3c5ba2465099f23069d2cacf2.zip
Merge "Adding port attribute in network parameter of boot."
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 9beadd2df..86d3a59b2 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -588,10 +588,22 @@ class NetworkBusy(NovaException):
message = _("Network %(network)s has active ports, cannot delete.")
+class NetworkIsDuplicated(NovaException):
+ message = _("Network %(network)s is duplicated.")
+
+
class DatastoreNotFound(NotFound):
message = _("Could not find the datastore reference(s) which the VM uses.")
+class PortInUse(NovaException):
+ message = _("Port %(port_id)s is still in use.")
+
+
+class PortNotFound(NotFound):
+ message = _("Port %(port_id)s could not be found.")
+
+
class FixedIpNotFound(NotFound):
message = _("No fixed IP associated with id %(id)s.")