diff options
| author | jeremy.zhang <zhangjun_inspur@163.com> | 2017-04-04 19:21:19 +0800 |
|---|---|---|
| committer | Jeremy Zhang <zhangjun_inspur@163.com> | 2017-06-20 07:56:54 +0000 |
| commit | 020bb811d12379c572062c76417f2fddea8b7024 (patch) | |
| tree | 9afd0f5695c37725e9503899d3393f690866ffb4 /cinderclient/v2/shell.py | |
| parent | 794758c37d8b8a3a9f0afdab7ad4cc3bb60124e4 (diff) | |
| download | python-cinderclient-020bb811d12379c572062c76417f2fddea8b7024.tar.gz | |
Fix cmd options for updating a quota class
Actions on updating volume quota class:
[1] Add cmd option 'backups, backup-gigabytes, per-volume-gigabytes'
[2] Add test cases for cmd quota-class-show and quota-class-update
[3] Fix according test cases
Now, cmd option '--consistencygroups' is not yet supported for updating
quota class.
Change-Id: I482ae501f15a103b9e07f4f17d182c853035dca9
Diffstat (limited to 'cinderclient/v2/shell.py')
| -rw-r--r-- | cinderclient/v2/shell.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index 7186fe8..2c68d6d 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -1026,10 +1026,22 @@ def do_quota_class_show(cs, args): metavar='<gigabytes>', type=int, default=None, help='The new "gigabytes" quota value. Default=None.') +@utils.arg('--backups', + metavar='<backups>', + type=int, default=None, + help='The new "backups" quota value. Default=None.') +@utils.arg('--backup-gigabytes', + metavar='<backup_gigabytes>', + type=int, default=None, + help='The new "backup_gigabytes" quota value. Default=None.') @utils.arg('--volume-type', metavar='<volume_type_name>', default=None, help='Volume type. Default=None.') +@utils.arg('--per-volume-gigabytes', + metavar='<per_volume_gigabytes>', + type=int, default=None, + help='Set max volume size limit. Default=None.') def do_quota_class_update(cs, args): """Updates quotas for a quota class.""" |
