'Return the pools filtered by volume type specs'

def _filter_pools_by_volume_type(self, context, volume_type, pools):

    filter_properties = {'context': context, 'volume_type': volume_type, 'resource_type': volume_type, 'qos_specs': volume_type.get('qos_specs')}
    filtered = self.get_filtered_backends(pools.values(), filter_properties)
    return {k: v for (k, v) in pools.items() if (v in filtered)}
