

def args2body(self, parsed_args):
    _subnet_id = neutronV20.find_resourceid_by_name_or_id(self.get_client(), 'subnet', parsed_args.subnet_id)
    body = {
        'admin_state_up': parsed_args.admin_state,
        'subnet_id': _subnet_id,
    }
    neutronV20.update_dict(parsed_args, body, ['description', 'lb_method', 'name', 'protocol', 'tenant_id', 'provider'])
    return {
        self.resource: body,
    }

dataset/ETHPy150Open openstack/python-neutronclient/neutronclient/neutron/v2_0/lb/pool.py CreatePool.args2body/original