provide way to specify id in models_v2
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Aaron Rosen
- Solved:
- Last query:
- Last reply: