diff --git a/vmware_nsx/shell/admin/plugins/common/constants.py b/vmware_nsx/shell/admin/plugins/common/constants.py index 1ee2c3fc06..084cf98863 100644 --- a/vmware_nsx/shell/admin/plugins/common/constants.py +++ b/vmware_nsx/shell/admin/plugins/common/constants.py @@ -19,6 +19,8 @@ NSX_INI = '/etc/neutron/plugins/vmware/nsx.ini' # NSX Plugin Constants NSXV3_PLUGIN = 'vmware_nsx.plugin.NsxV3Plugin' NSXV_PLUGIN = 'vmware_nsx.plugin.NsxVPlugin' +VMWARE_NSXV = 'vmware_nsxv' +VMWARE_NSXV3 = 'vmware_nsxv3' # Common Resource Constants NETWORKS = 'networks' diff --git a/vmware_nsx/shell/resources.py b/vmware_nsx/shell/resources.py index 900200e673..a5346bf4d7 100644 --- a/vmware_nsx/shell/resources.py +++ b/vmware_nsx/shell/resources.py @@ -176,9 +176,9 @@ def get_resources(plugin_dir): def get_plugin(): plugin = cfg.CONF.core_plugin plugin_name = '' - if plugin == constants.NSXV3_PLUGIN: + if plugin in (constants.NSXV3_PLUGIN, constants.VMWARE_NSXV3): plugin_name = 'nsxv3' - elif plugin == constants.NSXV_PLUGIN: + elif plugin in (constants.NSXV_PLUGIN, constants.VMWARE_NSXV): plugin_name = 'nsxv' return plugin_name