QNAP: Add support for QES 2.0.0

This patch do the following change to the QNAP Manila driver:
1. Add support for QNAP QES firmware 2.0.0.

Change-Id: Ifd4a1f042cd35fc0b2fd77fa8602a9aead65bc62
Implements: blueprint qnap-support-qes-200
This commit is contained in:
Chris Yang 2017-12-28 17:02:08 +08:00
parent 087753be05
commit 69b8810264
2 changed files with 8 additions and 3 deletions

View File

@ -69,9 +69,10 @@ class QnapShareDriver(driver.ShareDriver):
override by the another access rule.
1.0.3 - Add supports for Thin Provisioning, SSD Cache, Deduplication
and Compression.
1.0.4 - Add support for QES fw 2.0.0.
"""
DRIVER_VERSION = '1.0.3'
DRIVER_VERSION = '1.0.4'
def __init__(self, *args, **kwargs):
"""Initialize QnapShareDriver."""
@ -160,14 +161,14 @@ class QnapShareDriver(driver.ShareDriver):
username=self.configuration.qnap_nas_login,
password=self.configuration.qnap_nas_password,
management_url=self.configuration.qnap_management_url)
elif "1.1.2" <= fw_version <= "1.1.4":
elif "1.1.2" <= fw_version <= "2.0.9999":
LOG.debug('Create ES API Executor')
return api.QnapAPIExecutor(
username=self.configuration.qnap_nas_login,
password=self.configuration.qnap_nas_password,
management_url=self.configuration.qnap_management_url)
elif model_type in es_model_types:
if "1.1.2" <= fw_version <= "1.1.4":
if "1.1.2" <= fw_version <= "2.0.9999":
LOG.debug('Create ES API Executor')
return api.QnapAPIExecutor(
username=self.configuration.qnap_nas_login,

View File

@ -0,0 +1,4 @@
---
features:
- |
QNAP Manila driver added support for QES fw 2.0.0.