provide way to specify id in models_v2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Aaron Rosen |
Bug Description
Currently in models_v2.py there is no way to pass in your own id for tables that inherit HasId.
For example:
class HasId(object):
"""id mixin, add to subclasses that have an id."""
id = sa.Column(
class Network(
<...snip>
I suggest modifying db_base_
For example:
def create_
n = network['network']
tenant_id = self._get_
with context.
network = models_
<..snip>
This modification would not change the interface at all. Does anyone have any strong opinions against this? If not I'll make a bug report and provide the patch.
Thanks,
Aaron
Changed in quantum: | |
assignee: | nobody → Aaron Rosen (arosen) |
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/9893
Review: https:/