'Return available pools filtered by a pool name search pattern.'

def _get_filtered_pools(self):

    if self.configuration.safe_get('netapp_volume_list'):
        msg = "The    option    'netapp_volume_list'    is    deprecated    and    will    be    removed    in    the    future    releases.    Please    use    the    option    'netapp_pool_name_search_pattern'    instead."
        versionutils.report_deprecated_feature(LOG, msg)
    pool_regex = na_utils.get_pool_name_filter_regex(self.configuration)
    filtered_pools = []
    for vol in self.vols:
        vol_name = vol.get_child_content('name')
        if pool_regex.match(vol_name):
            msg = "Volume    '%(vol_name)s'    matches    against    regular    expression:    %(vol_pattern)s"
            LOG.debug(msg, {'vol_name': vol_name, 'vol_pattern': pool_regex.pattern})
            filtered_pools.append(vol_name)
        else:
            msg = "Volume    '%(vol_name)s'    does    not    match    against    regular    expression:    %(vol_pattern)s"
            LOG.debug(msg, {'vol_name': vol_name, 'vol_pattern': pool_regex.pattern})
    return filtered_pools
