From 14095154691d62e3c661bc7dc9c3d2ce7c3d92d4 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Thu, 5 Sep 2019 17:16:19 +0000 Subject: [PATCH] Add "Port" to "RouterPort" foreign_keys This foreign key is present in the DB model definition [1]. The OVO definition should reflect it. Trivial-Fix [1]https://github.com/openstack/neutron/blob/25d0ad61976933df5ac388dcfb5dc8ba337d5fce/neutron/db/models/l3.py#L29-L33 Change-Id: Ib47d4ade934e1a631bddc19f4a78c237da822994 --- neutron/objects/router.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/objects/router.py b/neutron/objects/router.py index 796dad2b359..5351adf07ba 100644 --- a/neutron/objects/router.py +++ b/neutron/objects/router.py @@ -135,7 +135,8 @@ class RouterPort(base.NeutronDbObject): primary_keys = ['router_id', 'port_id'] - foreign_keys = {'Router': {'router_id': 'id'}} + foreign_keys = {'Router': {'router_id': 'id'}, + 'Port': {'port_id': 'id'}} fields = { 'router_id': common_types.UUIDField(),