Add MapRFS protocol

Add native protocol for MapRFS Manila share driver

Implements: blueprint maprfs-native-protocol

Change-Id: I6fe89e295aa0ebc693c25abcda40e19dcd1e4317
This commit is contained in:
Vitaliy Levitski 2017-01-18 14:51:52 +02:00
parent 26be7b1d54
commit 162434e0ac
4 changed files with 7 additions and 3 deletions

View File

@ -233,7 +233,7 @@ class ManageShare(forms.SelfHandlingForm):
manila_features = getattr(settings, 'OPENSTACK_MANILA_FEATURES', {})
self.enabled_share_protocols = manila_features.get(
'enabled_share_protocols',
['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS'])
['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS', 'MapRFS'])
self.fields['protocol'].choices = ([(' ', ' ')] +
[(enabled_proto, enabled_proto)
for enabled_proto in

View File

@ -53,7 +53,7 @@ class CreateForm(forms.SelfHandlingForm):
manila_features = getattr(settings, 'OPENSTACK_MANILA_FEATURES', {})
self.enabled_share_protocols = manila_features.get(
'enabled_share_protocols',
['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS'])
['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS', 'MapRFS'])
self.enable_public_shares = manila_features.get(
'enable_public_shares', True)
share_networks = manila.share_network_list(request)

View File

@ -19,5 +19,6 @@ OPENSTACK_MANILA_FEATURES = {
'enable_migration': True,
'enable_public_share_type_creation': True,
'enable_public_shares': True,
'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS'],
'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS',
'MapRFS'],
}

View File

@ -0,0 +1,3 @@
---
features:
- Added native protocol for MapRFS manila share driver