neutron/neutron/tests/unit/plugins
Kevin Benton 0f536d5a25 Use objects instead of SQLA deep copies in PortContext
The workaround of using deepcopy calls on the PortBinding
and PortBindingLevel objects prevents the port relationship
from being loaded to bump its revision because it then fails
to merge.

So in order to allow port bindings to bump the revision we
need to stop using sqlalchemy objects in the PortContext. This
patch adds a new snapshot object that just copies the column
values and provides a method to reconcile them back into the
session.

This workaround can go away after we switch to using OVOs, but
this needs to be backportable so we can't just wait for OVO
adoption.

Partial-Bug: #1699034
Change-Id: Ib85ec8182117fa3c4844dabfffe881e38e68b556
2017-06-20 01:34:10 -07:00
..
common Utils: make delete_port_on_error more informative 2017-05-02 06:23:51 +03:00
ml2 Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00