diff options
author | Dan Smith <danms@us.ibm.com> | 2013-02-12 15:45:24 -0500 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2013-02-19 14:12:54 -0500 |
commit | a9add7d35e27b90f0c420d2b24b1af88b978fd7b (patch) | |
tree | df02cae2407ef2ff714a16d351dfc633471aa66f /nova/exception.py | |
parent | 1b9b66ba210c1dd886a95d79e5621e13fb64aa3a (diff) | |
download | nova-a9add7d35e27b90f0c420d2b24b1af88b978fd7b.tar.gz nova-a9add7d35e27b90f0c420d2b24b1af88b978fd7b.tar.xz nova-a9add7d35e27b90f0c420d2b24b1af88b978fd7b.zip |
Add support for network adapter hotplug.
This patch makes it possible to add/del instance
interface other than booting time.
Implement bp:network-adapter-hotplug
Originally from change Ibee003a9ec6cc9b3fd275417caccd0c67f6c871f
Co-authored-by: Yaguang Tang <heut2008@gmail.com>
Co-authored-by: Édouard Thuleau <edouard.thuleau@orange.com>
Change-Id: I4f8f677af58afcb928379e5cf859388d1da45d51
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 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 " |