EMC VMAX - Change naming convention for MV and SG for FAST
Up until now we assumed a one to one relationship between FAST policy and Pool. This does not have to be the case. A FAST policy can span multiple pools. To ensure uniqueness we will change the SG nand MV name to contain the FAST policy and not the pool name. Change-Id: I4d7cc4f8922d08b886b8eb3eb9b1a2b3f4340cc1 Closes-Bug: #1515181
This commit is contained in:
@@ -2377,6 +2377,20 @@ class EMCVMAXUtils(object):
|
||||
else:
|
||||
return poolName
|
||||
|
||||
def generate_unique_trunc_fastpolicy(self, fastPolicyName):
|
||||
"""Create a unique fast policy name under 14 chars
|
||||
|
||||
:param fastPolicyName: long fast policy name
|
||||
:returns: truncated fast policy name
|
||||
"""
|
||||
if fastPolicyName and len(fastPolicyName) > 14:
|
||||
return (
|
||||
("%(first)s_%(last)s"
|
||||
% {'first': fastPolicyName[:7],
|
||||
'last': fastPolicyName[-6:]}))
|
||||
else:
|
||||
return fastPolicyName
|
||||
|
||||
def get_iscsi_protocol_endpoints(self, conn, portgroupinstancename):
|
||||
"""Get the iscsi protocol endpoints of a port group.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user