uselist=False is used for one to one relationship, but for
DVRPortBinding, a router_interface_distributed port can have
multiple bindings. That causes SAWarning:
Multiple rows returned with uselist=False for lazily-loaded attribute
'Port.dvr_port_binding'.
"uselist=False" is misused in DVRPortBinding port relationship,
this patch will fix this.
Reviewed: https:/ /review. openstack. org/274550 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=951dd5e015c bd102aed80a6808 f623b4626e727d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 951dd5e015cbd10 2aed80a6808f623 b4626e727d
Author: lzklibj <email address hidden>
Date: Mon Feb 1 16:39:54 2016 +0800
Fix port relationship for DVRPortBinding
uselist=False is used for one to one relationship, but for interface_ distributed port can have dvr_port_ binding' .
DVRPortBinding, a router_
multiple bindings. That causes SAWarning:
Multiple rows returned with uselist=False for lazily-loaded attribute
'Port.
"uselist=False" is misused in DVRPortBinding port relationship,
this patch will fix this.
Change-Id: I2b00d96aaa445e 0977bc3d4957d35 a28d44dd953
Closes-Bug: #1540259