'Get 3PAR volume settings given a volume.
Combines type info and config settings to return a dictionary
describing the 3PAR volume settings.  Does some validation (CPG and
persona).
:param volume:
:param host: Optional host to use for default pool.
:returns: dict'

def get_volume_settings_from_type(self, volume, host=None):

    type_id = volume.get('volume_type_id', None)
    pool = None
    if host:
        pool = volume_utils.extract_host(host['host'], 'pool')
    else:
        pool = volume_utils.extract_host(volume['host'], 'pool')
    volume_settings = self.get_volume_settings_from_type_id(type_id, pool)
    self.get_persona_type(volume, volume_settings['hpe3par_keys'])
    return volume_settings
