'Return pool\'s total and available capacities.'

def _get_pool_capacity(self, pool_name):

    xml_tree = self.vpsa.send_cmd('list_pools')
    pool = self._xml_parse_helper(xml_tree, 'pools', ('name', pool_name))
    if (pool is not None):
        total = int(pool.findtext('capacity'))
        free = int(float(pool.findtext('available-capacity')))
        LOG.debug('Pool    %(name)s:    %(total)sGB    total,    %(free)sGB    free', {'name': pool_name, 'total': total, 'free': free})
        return (total, free)
    return ('unknown', 'unknown')
