@profiler.trace
def subnetpool_create(request, name, prefixes, **kwargs):
 LOG.debug(('subnetpool_create(): name=%s, prefixes=%s, kwargs=%s' % (name, prefixes, kwargs)))
 body = {'subnetpool': {'name': name, 'prefixes': prefixes}}
 if ('tenant_id' not in kwargs):
  kwargs['tenant_id'] = request.user.project_id
 body['subnetpool'].update(kwargs)
 subnetpool = neutronclient(request).create_subnetpool(body=body).get('subnetpool')
 return SubnetPool(subnetpool)

@ profiler . trace def subnetpool_create ( request , name , prefixes , ** kwargs ) : LOG . debug ( ( 'subnetpool_create(): name=%s, prefixes=%s, kwargs=%s' % ( name , prefixes , kwargs ) ) ) body = { 'subnetpool' : { 'name' : name , 'prefixes' : prefixes } } if ( 'tenant_id' not in kwargs ) : kwargs [ 'tenant_id' ] = request . user . project_id body [ 'subnetpool' ] . update ( kwargs ) subnetpool = neutronclient ( request ) . create_subnetpool ( body = body ) . get ( 'subnetpool' ) return SubnetPool ( subnetpool )
create a subnetpool .