add2c14abd
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 |
||
---|---|---|
.. | ||
drivers | ||
extensions | ||
__init__.py | ||
test_aim_mapping_driver.py | ||
test_aim_validation.py | ||
test_apic_allowed_vm_name.py | ||
test_apic_segmentation_label.py | ||
test_extension_driver_api.py | ||
test_group_proxy_extension.py | ||
test_grouppolicy_plugin.py | ||
test_implicit_policy.py | ||
test_neutron_resources_driver.py | ||
test_neutronv2_api.py | ||
test_neutronv2_client.py | ||
test_nsx_policy_mapping_driver.py | ||
test_resource_mapping.py | ||
test_resource_mapping_proxy_group.py |