diff --git a/neutron/db/models/l3agent.py b/neutron/db/models/l3agent.py index 8ca12b3786d..25510665262 100644 --- a/neutron/db/models/l3agent.py +++ b/neutron/db/models/l3agent.py @@ -33,7 +33,7 @@ class RouterL3AgentBinding(model_base.BASEV2): router_id = sa.Column(sa.String(36), sa.ForeignKey("routers.id", ondelete='CASCADE'), primary_key=True) - l3_agent = orm.relation(agent_model.Agent) + l3_agent = orm.relationship(agent_model.Agent) l3_agent_id = sa.Column(sa.String(36), sa.ForeignKey("agents.id", ondelete='CASCADE'), primary_key=True) diff --git a/neutron/db/network_dhcp_agent_binding/models.py b/neutron/db/network_dhcp_agent_binding/models.py index d3147df53fd..dfefc9904bd 100644 --- a/neutron/db/network_dhcp_agent_binding/models.py +++ b/neutron/db/network_dhcp_agent_binding/models.py @@ -33,7 +33,7 @@ class NetworkDhcpAgentBinding(model_base.BASEV2): network_id = sa.Column(sa.String(36), sa.ForeignKey("networks.id", ondelete='CASCADE'), primary_key=True) - dhcp_agent = orm.relation(agent_model.Agent, lazy='subquery') + dhcp_agent = orm.relationship(agent_model.Agent, lazy='subquery') dhcp_agent_id = sa.Column(sa.String(36), sa.ForeignKey("agents.id", ondelete='CASCADE'),