From c5ea30352094a47d34ef1718cae991fe5f956aa8 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Wed, 3 Jan 2018 08:53:32 +0200 Subject: [PATCH] AdminUtils NSX-V3 fix for FWaaS callbacks When using the fwaas callbacks via the admin utils, we need to make sure the init_complete method of the core plugin will not be called, as it was override by the wrapper plugin used by the admin utils. Change-Id: I79387d4d1757d89f31951a9ba60ef1322c4f59a7 --- vmware_nsx/shell/admin/plugins/nsxv3/resources/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vmware_nsx/shell/admin/plugins/nsxv3/resources/utils.py b/vmware_nsx/shell/admin/plugins/nsxv3/resources/utils.py index 4d067e9593..c47c147c1a 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv3/resources/utils.py +++ b/vmware_nsx/shell/admin/plugins/nsxv3/resources/utils.py @@ -123,6 +123,7 @@ class NsxV3PluginWrapper(plugin.NsxV3Plugin): self.fwaas_callbacks = callbacks_class() # override the fwplugin_rpc since there is no RPC support in adminutils self.fwaas_callbacks.fwplugin_rpc = plugin_callbacks(fwaas_plugin) + self.init_is_complete = True def init_fwaas_for_admin_utils(self): # initialize the FWaaS plugin and callbacks