summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorMorgan Fainberg <m@metacloud.com>2013-02-06 15:39:54 -0800
committerGerrit Code Review <review@openstack.org>2013-02-19 01:50:51 +0000
commit59aaf1dff97aa25a71d317300b8255f4c59391a9 (patch)
tree6c5614d8cdd8b3963e5abacbf0939f1772deaad9 /nova/exception.py
parent30c2a8f66edb9f9601a519fb525a46cc4486ab2a (diff)
downloadnova-59aaf1dff97aa25a71d317300b8255f4c59391a9.tar.gz
nova-59aaf1dff97aa25a71d317300b8255f4c59391a9.tar.xz
nova-59aaf1dff97aa25a71d317300b8255f4c59391a9.zip
Default SG rules for the Security Group "Default"
Added in the API os-security-group-default-rules This allows create, delete, list, and get (of individual rules) for rules that will be pre-populated into the Security Group "default" that is populated in all projects on creation. These rules will not be applied retroactively, as it is designed to allow the creation of a "reasonable" base-line set of sg rules. The new rules live in a separate table that mirrors the relevant structures of the security_group_rules table. Added unit tests/API samples for the new API calls Related to bp default-rules-for-default-security-group DocImpact Change-Id: I7ab51e68aff562bb869538197a0eca158fc3220c
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 9e9e5182b..09b01b342 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -732,6 +732,10 @@ class SecurityGroupNotExistsForInstance(Invalid):
" the instance %(instance_id)s")
+class SecurityGroupDefaultRuleNotFound(Invalid):
+ message = _("Security group default rule (%rule_id)s not found.")
+
+
class MigrationNotFound(NotFound):
message = _("Migration %(migration_id)s could not be found.")