Merge "gw_port should be set as lazy='join'"
This commit is contained in:
commit
0df5e1f0f8
@ -53,7 +53,7 @@ class Router(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):
|
||||
status = sa.Column(sa.String(16))
|
||||
admin_state_up = sa.Column(sa.Boolean)
|
||||
gw_port_id = sa.Column(sa.String(36), sa.ForeignKey('ports.id'))
|
||||
gw_port = orm.relationship(models_v2.Port)
|
||||
gw_port = orm.relationship(models_v2.Port, lazy='joined')
|
||||
|
||||
|
||||
class FloatingIP(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):
|
||||
|
Loading…
Reference in New Issue
Block a user