NSX|V: ensure that FLAT provider network is deleted

Commit c138dcfdda introduced a bug
where a provider flat network would not be deleted from the VC.

Change-Id: I8fed64a7b7887e3b65d05e3a678bb50d7d4540b6
This commit is contained in:
Gary Kotton 2017-05-14 02:40:59 -07:00 committed by garyk
parent f0c1570025
commit adddd0a506
1 changed files with 2 additions and 1 deletions

View File

@ -1029,7 +1029,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):