summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorAaron Rosen <arosen@nicira.com>2013-02-15 10:49:12 -0800
committerAaron Rosen <arosen@nicira.com>2013-02-20 11:33:46 -0800
commitc3ed3dfcf99e9162616960bad5c7b7a36d3b2453 (patch)
tree27a60cd70cfcfef5f24476f194affe1bf0594410 /nova/exception.py
parentd562012f34eadfe6b68dd5ebe06a2fa565de3b2e (diff)
downloadnova-c3ed3dfcf99e9162616960bad5c7b7a36d3b2453.tar.gz
nova-c3ed3dfcf99e9162616960bad5c7b7a36d3b2453.tar.xz
nova-c3ed3dfcf99e9162616960bad5c7b7a36d3b2453.zip
Add Nova quantum security group proxy
Implements blueprint nova-quantum-security-group-proxy Change-Id: I21d70f1dc8e61d6412d14e30ab2aa1a83a711de2
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index fd0122835..13e007ecf 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -736,6 +736,16 @@ class SecurityGroupDefaultRuleNotFound(Invalid):
message = _("Security group default rule (%rule_id)s not found.")
+class SecurityGroupCannotBeApplied(Invalid):
+ message = _("Network requires port_security_enabled and subnet associated"
+ " in order to apply security groups.")
+
+
+class NoUniqueMatch(NovaException):
+ message = _("No Unique Match Found.")
+ code = 409
+
+
class MigrationNotFound(NotFound):
message = _("Migration %(migration_id)s could not be found.")