'Return a valid Purity host name based on the name passed in.'

@staticmethod
def _generate_purity_host_name(name):

    if (len(name) > 23):
        name = name[0:23]
    name = INVALID_CHARACTERS.sub('-', name)
    name = name.lstrip('-')
    return '{name}-{uuid}-cinder'.format(name=name, uuid=uuid.uuid4().hex)
