def update_algo_for_pools(self, algo, pg_name, avi_config):
    pool_group = [pg for pg in avi_config['PoolGroup'] if (pg['name'] == pg_name)][0]
    for member in pool_group['members']:
        pool_name = self.get_name(member['pool_ref'])
        pool = [pool for pool in avi_config['Pool'] if (pool['name'] == pool_name)][0]
        pool['lb_algorithm'] = algo
def update_algo_for_pools(self, algo, pg_name, avi_config):
    pool_group = [pg for pg in avi_config['PoolGroup'] if (pg['name'] == pg_name)][0]
    for member in pool_group['members']:
        pool_name = self.get_name(member['pool_ref'])
        pool = [pool for pool in avi_config['Pool'] if (pool['name'] == pool_name)][0]
        pool['lb_algorithm'] = algo