diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-02-20 06:16:33 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-02-20 06:16:33 +0000 |
commit | 6d0ed8f86fbaa7c52e66a1d335dcf063232de8dd (patch) | |
tree | 25d1bbf94abb1f9c35e2578dd128fec764f28847 /nova/exception.py | |
parent | 4e54c59b8888a2c5a8ab41c213d3bff2faba5570 (diff) | |
parent | a9add7d35e27b90f0c420d2b24b1af88b978fd7b (diff) | |
download | nova-6d0ed8f86fbaa7c52e66a1d335dcf063232de8dd.tar.gz nova-6d0ed8f86fbaa7c52e66a1d335dcf063232de8dd.tar.xz nova-6d0ed8f86fbaa7c52e66a1d335dcf063232de8dd.zip |
Merge "Add support for network adapter hotplug."
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/nova/exception.py b/nova/exception.py index 09b01b342..8beb68269 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.") @@ -1080,6 +1080,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 " |