diff options
| author | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-08-20 15:38:13 -0700 |
|---|---|---|
| committer | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-08-20 15:38:13 -0700 |
| commit | bb989133196744779527e36cba22a76bd44e533b (patch) | |
| tree | 40483fbcd36ea864039af10969645e184b7d535d /nova/exception.py | |
| parent | 71ae1f16312371fee810221e81c2bcb0fcb5a4ef (diff) | |
| download | nova-bb989133196744779527e36cba22a76bd44e533b.tar.gz nova-bb989133196744779527e36cba22a76bd44e533b.tar.xz nova-bb989133196744779527e36cba22a76bd44e533b.zip | |
add/remove security groups to/from the servers as server actions
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index b09d50797..e8cb7bcb5 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -541,6 +541,16 @@ class SecurityGroupNotFoundForRule(SecurityGroupNotFound): message = _("Security group with rule %(rule_id)s not found.") +class SecurityGroupExistsForInstance(Invalid): + message = _("Security group %(security_group_id)s is already associated" + " with the instance %(instance_id)s") + + +class SecurityGroupNotExistsForInstance(Invalid): + message = _("Security group %(security_group_id)s is not associated with" + " the instance %(instance_id)s") + + class MigrationNotFound(NotFound): message = _("Migration %(migration_id)s could not be found.") |
