Merge "NSX|V: ensure that FLAT provider network is deleted"

This commit is contained in:
Jenkins 2017-05-14 15:12:17 +00:00 committed by Gerrit Code Review
commit 8c99351869

View File

@ -1191,7 +1191,8 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
net_bindings)
if backend_network:
# Save moref in the DB for future access
if network_type == c_utils.NsxVNetworkTypes.VLAN:
if (network_type == c_utils.NsxVNetworkTypes.VLAN or
network_type == c_utils.NsxVNetworkTypes.FLAT):
# Save netmoref to dvs id mappings for VLAN network
# type for future access.
for dvs_id, netmoref in six.iteritems(dvs_pg_mappings):