Merge "Subnets should be set as lazy='join'" into stable/havana

This commit is contained in:
Jenkins 2014-03-28 05:08:34 +00:00 committed by Gerrit Code Review
commit f52449e60b
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ class Network(model_base.BASEV2, HasId, HasTenant):
name = sa.Column(sa.String(255))
ports = orm.relationship(Port, backref='networks')
subnets = orm.relationship(Subnet, backref='networks')
subnets = orm.relationship(Subnet, backref='networks',
lazy="joined")
status = sa.Column(sa.String(16))
admin_state_up = sa.Column(sa.Boolean)
shared = sa.Column(sa.Boolean)