OPENSTACK_MANILA_FEATURES = {
    'enable_share_groups': True,
    'enable_replication': True,
    'enable_migration': True,
    'enable_public_share_type_creation': True,
    'enable_public_share_group_type_creation': True,
    'enable_public_shares': True,
    'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS',
                                'MapRFS'],
}

from django.conf import settings


settings.POLICY_FILES.update({
    'share': 'manila_policy.json',
})

# The OPENSTACK_MANILA_FEATURES settings can be used to enable or disable
# the UI for the various services provided by Manila.
OPENSTACK_MANILA_FEATURES = {
    'enable_share_groups': True,
    'enable_replication': True,
    'enable_migration': True,
    'enable_public_share_type_creation': True,
    'enable_public_share_group_type_creation': True,
    'enable_public_shares': True,
    'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS',
                                'MapRFS'],
}

Define the default policy file
Define the default policy file

This change ensures that the default policy file for Manila API access
is defined by default, so that operators can deploy their own policy
more easily.

Change-Id: Ie890766ea2a274791393304cdfe532e024171195

+ from django.conf import settings
+ 
+ 
+ settings.POLICY_FILES.update({
+     'share': 'manila_policy.json',
+ })
+ 
+ # The OPENSTACK_MANILA_FEATURES settings can be used to enable or disable
+ # the UI for the various services provided by Manila.
  OPENSTACK_MANILA_FEATURES = {
      'enable_share_groups': True,
      'enable_replication': True,
      'enable_migration': True,
      'enable_public_share_type_creation': True,
      'enable_public_share_group_type_creation': True,
      'enable_public_shares': True,
      'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS',
                                  'MapRFS'],
  }
  
Define the default policy file
## Code Before:
OPENSTACK_MANILA_FEATURES = {
    'enable_share_groups': True,
    'enable_replication': True,
    'enable_migration': True,
    'enable_public_share_type_creation': True,
    'enable_public_share_group_type_creation': True,
    'enable_public_shares': True,
    'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS',
                                'MapRFS'],
}

## Instruction:
Define the default policy file
## Code After:
from django.conf import settings


settings.POLICY_FILES.update({
    'share': 'manila_policy.json',
})

# The OPENSTACK_MANILA_FEATURES settings can be used to enable or disable
# the UI for the various services provided by Manila.
OPENSTACK_MANILA_FEATURES = {
    'enable_share_groups': True,
    'enable_replication': True,
    'enable_migration': True,
    'enable_public_share_type_creation': True,
    'enable_public_share_group_type_creation': True,
    'enable_public_shares': True,
    'enabled_share_protocols': ['NFS', 'CIFS', 'GlusterFS', 'HDFS', 'CephFS',
                                'MapRFS'],
}
