def pool_create(request, **kwargs):
 body = {'pool': {'name': kwargs['name'], 'description': kwargs['description'], 'subnet_id': kwargs['subnet_id'], 'protocol': kwargs['protocol'], 'lb_method': kwargs['lb_method'], 'admin_state_up': kwargs['admin_state_up']}}
 pool = quantumclient(request).create_pool(body).get('pool')
 return Pool(pool)

def pool_create ( request , ** kwargs ) : body = { 'pool' : { 'name' : kwargs [ 'name' ] , 'description' : kwargs [ 'description' ] , 'subnet_id' : kwargs [ 'subnet_id' ] , 'protocol' : kwargs [ 'protocol' ] , 'lb_method' : kwargs [ 'lb_method' ] , 'admin_state_up' : kwargs [ 'admin_state_up' ] } } pool = quantumclient ( request ) . create_pool ( body ) . get ( 'pool' ) return Pool ( pool )
create a pool for specified protocol .