Browse Source

Merge "Add "Port" to "RouterPort" foreign_keys"

tags/15.0.0.0b1
Zuul 1 month ago
parent
commit
7d48bde722
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      neutron/objects/router.py

+ 2
- 1
neutron/objects/router.py View File

@@ -135,7 +135,8 @@ class RouterPort(base.NeutronDbObject):
135 135
 
136 136
     primary_keys = ['router_id', 'port_id']
137 137
 
138
-    foreign_keys = {'Router': {'router_id': 'id'}}
138
+    foreign_keys = {'Router': {'router_id': 'id'},
139
+                    'Port': {'port_id': 'id'}}
139 140
 
140 141
     fields = {
141 142
         'router_id': common_types.UUIDField(),

Loading…
Cancel
Save