diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index c1b421de10..a12f02dea3 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -600,10 +600,8 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): def _net_nsx_name(self, network): name = utils.get_name_and_uuid(network.get('name') or 'network', network['id']) - LOG.error("DEBUG ADIT orig name = %s", name) # remove illegal characters in segment names: ;|=,~@' name = re.sub("[;|=,~@\']", '', name) - LOG.error("DEBUG ADIT fixed name = %s", name) return name def _create_network_on_backend(self, context, net_data, @@ -1601,7 +1599,8 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): psec_on, has_ip = self._determine_port_security_and_has_ip(context, port_data) if not psec_on: - return None + # returning an empty list will delete all existing bindings + return [] address_bindings = [] for fixed_ip in port_data['fixed_ips']: