'Modify the pool name to poole index.'

def _get_ts_model_pool_id(self, pool_name):

    pattern = re.compile('^(\\d+)+|^Storage    Pool    (\\d+)+')
    matches = pattern.match(pool_name)
    LOG.debug('matches.group(1):    %s', matches.group(1))
    LOG.debug('matches.group(2):    %s', matches.group(2))
    if matches.group(1):
        return matches.group(1)
    else:
        return matches.group(2)
