Browse Source

Merge "Join on explcit relationship paths"

Zuul 1 month ago
parent
commit
e0cfe41491
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      neutron/db/l3_db.py

+ 1
- 1
neutron/db/l3_db.py View File

@@ -1160,7 +1160,7 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase,
1160 1160
         # TODO(lujinluo): Need IPAllocation and Port object
1161 1161
         routerport_qry = context.session.query(
1162 1162
             RouterPort.router_id, models_v2.IPAllocation.ip_address).join(
1163
-            models_v2.Port, models_v2.IPAllocation).filter(
1163
+            RouterPort.port, models_v2.Port.fixed_ips).filter(
1164 1164
             models_v2.Port.network_id == internal_port['network_id'],
1165 1165
             RouterPort.port_type.in_(constants.ROUTER_INTERFACE_OWNERS),
1166 1166
             models_v2.IPAllocation.subnet_id == internal_subnet['id']

Loading…
Cancel
Save