NSX|V3: remove redundent ens check

Change-Id: If0c11bce0a1bbbd4116ba37f40609efcd3513056
This commit is contained in:
Adit Sarfaty 2019-01-10 10:29:42 +02:00
parent 89d7b863f3
commit 337104e066

View File

@ -2070,13 +2070,6 @@ class NsxV3Plugin(nsx_plugin_common.NsxPluginV3Base,
if is_ens_tz_port:
self._disable_ens_portsec(port_data)
if (cfg.CONF.nsx_v3.disable_port_security_for_ens and
not self._ens_psec_supported()):
LOG.warning("Disabling port security for network %s",
port_data['network_id'])
port_data[psec.PORTSECURITY] = False
port_data['security_groups'] = []
is_external_net = self._network_is_external(
context, port_data['network_id'])