Example #1
0
    def __init__(self, *args, **kwargs):
        super(EMCShareDriver, self).__init__(*args, **kwargs)
        self.configuration = kwargs.get('configuration', None)
        if self.configuration:
            self.configuration.append_config_values(EMC_NAS_OPTS)

        self.plugin_manager = manager.EMCPluginManager(
            namespace='manila.share.drivers.emc.plugins')

        self.plugin = None
Example #2
0
 def __init__(self, *args, **kwargs):
     self.configuration = kwargs.get('configuration', None)
     if self.configuration:
         self.configuration.append_config_values(EMC_NAS_OPTS)
         self.backend_name = self.configuration.safe_get(
             'emc_share_backend')
     else:
         self.backend_name = CONF.emc_share_backend
     self.backend_name = self.backend_name or 'EMC_NAS_Storage'
     self.plugin_manager = manager.EMCPluginManager(
         namespace='manila.share.drivers.emc.plugins')
     self.plugin = self.plugin_manager.load_plugin(self.backend_name, LOG)
     super(EMCShareDriver, self).__init__(
         self.plugin.driver_handles_share_servers, *args, **kwargs)