Fix [Unity] verification and convert mgmt ipv6
The IPv6 format need change to [ipv6]
Closes-bug:
@@ -39,9 +39,10 @@ from manila import utils
"""Version history:
7.0.0 - Supports DHSS=False mode
+ 7.0.1 - Fix parsing management IPv6 address
"""
-VERSION = "7.0.0"
+VERSION = "7.0.1"
LOG = log.getLogger(__name__)
SUPPORTED_NETWORK_TYPES = (None, 'flat', 'vlan')
@@ -105,7 +106,8 @@ class UnityStorageConnection(driver.StorageConnection):
def connect(self, emc_share_driver, context):
"""Connect to Unity storage."""
config = emc_share_driver.configuration
- storage_ip = config.emc_nas_server
+ storage_ip = enas_utils.convert_ipv6_format_if_needed(
+ config.emc_nas_server)
username = config.emc_nas_login
password = config.emc_nas_password
self.client = client.UnityClient(storage_ip, username, password)
