"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/share/drivers/netapp/dataontap/client/client_cmode.py" between
manila-8.1.3.tar.gz and manila-8.1.4.tar.gz

About: OpenStack Manila provides “Shared Filesystems as a service”.
The "Stein" series (maintained release).

client_cmode.py  (manila-8.1.3):client_cmode.py  (manila-8.1.4)
skipping to change at line 70 skipping to change at line 70
def _init_features(self): def _init_features(self):
"""Initialize cDOT feature support map.""" """Initialize cDOT feature support map."""
super(NetAppCmodeClient, self)._init_features() super(NetAppCmodeClient, self)._init_features()
ontapi_version = self.get_ontapi_version(cached=True) ontapi_version = self.get_ontapi_version(cached=True)
ontapi_1_20 = ontapi_version >= (1, 20) ontapi_1_20 = ontapi_version >= (1, 20)
ontapi_1_2x = (1, 20) <= ontapi_version < (1, 30) ontapi_1_2x = (1, 20) <= ontapi_version < (1, 30)
ontapi_1_30 = ontapi_version >= (1, 30) ontapi_1_30 = ontapi_version >= (1, 30)
ontapi_1_110 = ontapi_version >= (1, 110) ontapi_1_110 = ontapi_version >= (1, 110)
ontapi_1_150 = ontapi_version >= (1, 150)
self.features.add_feature('SNAPMIRROR_V2', supported=ontapi_1_20) self.features.add_feature('SNAPMIRROR_V2', supported=ontapi_1_20)
self.features.add_feature('SYSTEM_METRICS', supported=ontapi_1_2x) self.features.add_feature('SYSTEM_METRICS', supported=ontapi_1_2x)
self.features.add_feature('SYSTEM_CONSTITUENT_METRICS', self.features.add_feature('SYSTEM_CONSTITUENT_METRICS',
supported=ontapi_1_30) supported=ontapi_1_30)
self.features.add_feature('BROADCAST_DOMAINS', supported=ontapi_1_30) self.features.add_feature('BROADCAST_DOMAINS', supported=ontapi_1_30)
self.features.add_feature('IPSPACES', supported=ontapi_1_30) self.features.add_feature('IPSPACES', supported=ontapi_1_30)
self.features.add_feature('SUBNETS', supported=ontapi_1_30) self.features.add_feature('SUBNETS', supported=ontapi_1_30)
self.features.add_feature('CLUSTER_PEER_POLICY', supported=ontapi_1_30) self.features.add_feature('CLUSTER_PEER_POLICY', supported=ontapi_1_30)
self.features.add_feature('ADVANCED_DISK_PARTITIONING', self.features.add_feature('ADVANCED_DISK_PARTITIONING',
supported=ontapi_1_30) supported=ontapi_1_30)
self.features.add_feature('FLEXVOL_ENCRYPTION', supported=ontapi_1_110) self.features.add_feature('FLEXVOL_ENCRYPTION', supported=ontapi_1_110)
self.features.add_feature('CIFS_DC_ADD_SKIP_CHECK',
supported=ontapi_1_150)
def _invoke_vserver_api(self, na_element, vserver): def _invoke_vserver_api(self, na_element, vserver):
server = copy.copy(self.connection) server = copy.copy(self.connection)
server.set_vserver(vserver) server.set_vserver(vserver)
result = server.invoke_successfully(na_element, True) result = server.invoke_successfully(na_element, True)
return result return result
def _has_records(self, api_result_element): def _has_records(self, api_result_element):
if (not api_result_element.get_child_content('num-records') or if (not api_result_element.get_child_content('num-records') or
api_result_element.get_child_content('num-records') == '0'): api_result_element.get_child_content('num-records') == '0'):
skipping to change at line 1527 skipping to change at line 1530
return return
api_args = { api_args = {
'preferred-dc': [], 'preferred-dc': [],
'domain': security_service['domain'], 'domain': security_service['domain'],
} }
for dc_ip in security_service['server'].split(','): for dc_ip in security_service['server'].split(','):
api_args['preferred-dc'].append({'string': dc_ip.strip()}) api_args['preferred-dc'].append({'string': dc_ip.strip()})
if self.features.CIFS_DC_ADD_SKIP_CHECK:
api_args['skip-config-validation'] = 'false'
try: try:
self.send_request('cifs-domain-preferred-dc-add', api_args) self.send_request('cifs-domain-preferred-dc-add', api_args)
except netapp_api.NaApiError as e: except netapp_api.NaApiError as e:
msg = _("Failed to set preferred DC. %s") msg = _("Failed to set preferred DC. %s")
raise exception.NetAppException(msg % e.message) raise exception.NetAppException(msg % e.message)
@na_utils.trace @na_utils.trace
def create_volume(self, aggregate_name, volume_name, size_gb, def create_volume(self, aggregate_name, volume_name, size_gb,
thin_provisioned=False, snapshot_policy=None, thin_provisioned=False, snapshot_policy=None,
language=None, dedup_enabled=False, language=None, dedup_enabled=False,
 End of changes. 3 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)