bulk creation does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Salvatore Orlando |
Bug Description
It seems bulk creation does not work in API v2.0's plugin.
This is from base.py:
def create(self, request, body=None):
"""Creates a new instance of the requested entity"""
body = self._prepare_
action = "create_%s" % self._resource
# Check authz
try:
if self._collection in body:
# Have to account for bulk create
for item in body[self.
else:
)
except exceptions.
raise webob.exc.
obj_creator = getattr(
kwargs = {self._resource: body}
obj = obj_creator(
return {self._resource: self._view(obj)}
This is creator for each resource in db_base_
def create_port(self, context, port):
p = port['port']
def create_subnet(self, context, subnet):
s = subnet['subnet']
def create_
n = network['network']
I cannot see any of them can deal with bulk creation.
Changed in quantum: | |
assignee: | nobody → Salvatore Orlando (salvatore-orlando) |
Changed in quantum: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | folsom-3 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/10732
Review: https:/