summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 9e9e5182b..cdc533d2b 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -496,6 +496,10 @@ class NetworkNotFound(NotFound):
message = _("Network %(network_id)s could not be found.")
+class PortNotFound(NotFound):
+ message = _("Port id %(port_id)s could not be found.")
+
+
class NetworkNotFoundForBridge(NetworkNotFound):
message = _("Network could not be found for bridge %(bridge)s")
@@ -529,10 +533,6 @@ 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 PortNotUsable(NovaException):
message = _("Port %(port_id)s not usable for instance %(instance)s.")
@@ -1076,6 +1076,14 @@ class ConfigDriveUnknownFormat(NovaException):
"iso9660 or vfat.")
+class InterfaceAttachFailed(Invalid):
+ message = _("Failed to attach network adapter device to %(instance)s")
+
+
+class InterfaceDetachFailed(Invalid):
+ message = _("Failed to detach network adapter device from %(instance)s")
+
+
class InstanceUserDataTooLarge(NovaException):
message = _("User data too large. User data must be no larger than "
"%(maxsize)s bytes once base64 encoded. Your data is "