summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2013-01-16 13:20:47 +1300
committerRobert Collins <robertc@robertcollins.net>2013-01-16 13:20:50 +1300
commit05f445c1dc7f701e65001432537cc343b46d683b (patch)
treeb3805a7ff3df97d6f21e8272fadd9b4db883673a /nova/exception.py
parent6c1eae946d4a479f0557c94850aab73951cd1c4f (diff)
downloadnova-05f445c1dc7f701e65001432537cc343b46d683b.tar.gz
nova-05f445c1dc7f701e65001432537cc343b46d683b.tar.xz
nova-05f445c1dc7f701e65001432537cc343b46d683b.zip
Create ports in quantum matching hypervisor MAC addresses.
When hypervisors supply a set of MAC addresses for instances, the network driver is responsible for matching up the requested MACs and the available (or requested) networks. The simplest case, which this patch addresses, is to create ports in quantum on the desired networks, rather than having quantum create them dynamically with dynamically created MAC addresses. Change-Id: I84cd96671b76b8beaa31436c8a438f7818ef622f
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index dcd75bf4e..6b6eeb29d 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -526,6 +526,10 @@ class PortNotUsable(NovaException):
message = _("Port %(port_id)s not usable for instance %(instance)s.")
+class PortNotFree(NovaException):
+ message = _("No free port available for instance %(instance)s.")
+
+
class FixedIpNotFound(NotFound):
message = _("No fixed IP associated with id %(id)s.")