Merge "Add MAPRFS protocol in create help"
This commit is contained in:
commit
d80a7cef71
manilaclient
@ -53,7 +53,7 @@ class SharesTest(utils.TestCase):
|
|||||||
|
|
||||||
# Testcases for class ShareManager
|
# Testcases for class ShareManager
|
||||||
|
|
||||||
@ddt.data('nfs', 'cifs', 'cephfs', 'glusterfs', 'hdfs')
|
@ddt.data('nfs', 'cifs', 'cephfs', 'glusterfs', 'hdfs', 'maprfs')
|
||||||
def test_create_share_with_protocol(self, protocol):
|
def test_create_share_with_protocol(self, protocol):
|
||||||
expected = {
|
expected = {
|
||||||
'size': 1,
|
'size': 1,
|
||||||
|
@ -127,8 +127,8 @@ class ShareManager(base.ManagerWithFind):
|
|||||||
share_group_id=None):
|
share_group_id=None):
|
||||||
"""Create a share.
|
"""Create a share.
|
||||||
|
|
||||||
:param share_proto: text - share protocol for new share
|
:param share_proto: text - share protocol for new share available
|
||||||
available values are NFS, CIFS, CephFS, GlusterFS and HDFS.
|
values are NFS, CIFS, CephFS, GlusterFS, HDFS and MAPRFS.
|
||||||
:param size: int - size in GiB
|
:param size: int - size in GiB
|
||||||
:param snapshot_id: text - ID of the snapshot
|
:param snapshot_id: text - ID of the snapshot
|
||||||
:param name: text - name of new share
|
:param name: text - name of new share
|
||||||
|
@ -678,7 +678,7 @@ def do_rate_limits(cs, args):
|
|||||||
'share_protocol',
|
'share_protocol',
|
||||||
metavar='<share_protocol>',
|
metavar='<share_protocol>',
|
||||||
type=str,
|
type=str,
|
||||||
help='Share protocol (NFS, CIFS, CephFS, GlusterFS or HDFS).')
|
help='Share protocol (NFS, CIFS, CephFS, GlusterFS, HDFS or MAPRFS).')
|
||||||
@cliutils.arg(
|
@cliutils.arg(
|
||||||
'size',
|
'size',
|
||||||
metavar='<size>',
|
metavar='<size>',
|
||||||
@ -744,7 +744,7 @@ def do_rate_limits(cs, args):
|
|||||||
default=None)
|
default=None)
|
||||||
@cliutils.service_type('sharev2')
|
@cliutils.service_type('sharev2')
|
||||||
def do_create(cs, args):
|
def do_create(cs, args):
|
||||||
"""Creates a new share (NFS, CIFS, CephFS, GlusterFS or HDFS)."""
|
"""Creates a new share (NFS, CIFS, CephFS, GlusterFS, HDFS or MAPRFS)."""
|
||||||
|
|
||||||
share_metadata = None
|
share_metadata = None
|
||||||
if args.metadata is not None:
|
if args.metadata is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user