diff options
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 " |