Merge "Set loading strategy to joined for Routerport/Port"

This commit is contained in:
Jenkins 2015-04-18 03:54:18 +00:00 committed by Gerrit Code Review
commit 145e0052d6

View File

@ -71,7 +71,8 @@ class RouterPort(model_base.BASEV2):
port_type = sa.Column(sa.String(255))
port = orm.relationship(
models_v2.Port,
backref=orm.backref('routerport', uselist=False, cascade="all,delete"))
backref=orm.backref('routerport', uselist=False, cascade="all,delete"),
lazy='joined')
class Router(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):