group-based-policy/gbpservice
Robert Kukura add2c14abd [AIM] Fix legacy SNAT migration
Avoid issues caused by missing NetworkMapping DB records when cleaning
up the legacy plugin's SNAT-related resources. The test_legacy_cleanup
UT is enhanced to create a router and an interfaced internal network
and to delete all mapping and extension records, so that code
manipulating legacy SNAT resources with missing mapping records is
exercised.

Missing NetworkMapping and AddressScopeMapping records are silently
ignored in delete_*_precommit methods. They are logged and ignored in
extend_*_dict methods.

When an AddressScopeMapping or a NetworkMapping record is added, the
corresponding AddressScope or Network instance's aim_mapping
relationship field is updated to reference it. This avoids aim_mapping
being None when the AddressScope or Network instance is subsequently
retrieved from the session cache within the same transaction.

Change-Id: I84f3c401df7c79deb9151b0b232262139fca9429
2018-12-02 12:08:20 -05:00
..
common Pike sync 2018-01-06 19:36:36 -08:00
contrib For queens sync 2018-09-07 16:24:08 -07:00
network Use a better name for the imports 2018-09-11 14:11:07 -07:00
neutron [AIM] Fix legacy SNAT migration 2018-12-02 12:08:20 -05:00
nfp For queens sync 2018-09-07 16:24:08 -07:00
tests For queens sync 2018-09-07 16:24:08 -07:00
tools [AIM] Distinguish repairable vs. unrepairable validation failures 2018-11-02 12:38:19 -04:00
__init__.py Renaming gbp package to gbpservice 2014-12-31 19:13:19 -08:00
_i18n.py Preparing for Pike support 2017-10-24 15:09:55 -07:00