From 1312e9c672870afe67d29a0ed39f81dd325ac7cb Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sun, 14 May 2017 02:40:59 -0700 Subject: [PATCH] NSX|V: ensure that FLAT provider network is deleted Commit c138dcfdda190304054b8dc8430403f636cfc1fe introduced a bug where a provider flat network would not be deleted from the VC. Change-Id: I8fed64a7b7887e3b65d05e3a678bb50d7d4540b6 --- vmware_nsx/plugins/nsx_v/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index 65071e97a5..11c90fec1e 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -1190,7 +1190,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):