From fa1f36c675ee24d66a0b07a8bcd5c67c6d343b5b Mon Sep 17 00:00:00 2001 From: asarfaty Date: Sun, 25 Oct 2020 08:49:31 +0200 Subject: [PATCH] NSX|P: Remove extra validation for segment realization Change-Id: I5865d7d899cbe7c86dfbdc3bb180f150b91f311d --- vmware_nsx/plugins/nsx_p/plugin.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index 153eb1326c..e68f55264f 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -1618,10 +1618,6 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): try: nsx_id = self.nsxpolicy.segment.get_realized_logical_switch_id( segment_id) - # Make sure the LS is already active before letting nova use it - if utils.is_nsx_version_3_1_0(self._nsx_version): - self.nsxpolicy.segment.wait_until_state_successful( - segment_id, with_refresh=True) # Add result to caches NET_NEUTRON_2_NSX_ID_CACHE[network_id] = nsx_id NET_NSX_2_NEUTRON_ID_CACHE[nsx_id] = network_id