Add more details for replication

Show more information when user uses help function to get
more details about replication-promote and replication_reenable.

Change-Id: Icd41bd746c32cdfabbd27a80a818344136e7b71a
Closes-Bug: #1401877
This commit is contained in:
Kuo-tung Kao 2015-06-29 15:16:36 +08:00
parent 953f76650e
commit 075381d0aa
1 changed files with 5 additions and 2 deletions

View File

@ -1934,7 +1934,9 @@ def do_unmanage(cs, args):
@utils.arg('volume', metavar='<volume>',
help='Name or ID of the volume to promote.')
help='Name or ID of the volume to promote. '
'The volume should have the replica volume created with '
'source-replica argument.')
@utils.service_type('volumev2')
def do_replication_promote(cs, args):
"""Promote a secondary volume to primary for a relationship."""
@ -1943,7 +1945,8 @@ def do_replication_promote(cs, args):
@utils.arg('volume', metavar='<volume>',
help='Name or ID of the volume to reenable replication.')
help='Name or ID of the volume to reenable replication. '
'The replication-status of the volume should be inactive.')
@utils.service_type('volumev2')
def do_replication_reenable(cs, args):
"""Sync the secondary volume with primary for a relationship."""