TVD: use warning if plugin is not supported

Log a warning if the plugin is not supported, that is, if there is
an invalid configuration for the specific plaugin.

Change-Id: I3637337162bd31347be8bd40b3605ea4c4cb44f2
This commit is contained in:
Gary Kotton 2018-01-07 21:49:11 -08:00
parent b9b099af92
commit 5524137dba
1 changed files with 3 additions and 3 deletions

View File

@ -131,21 +131,21 @@ class NsxTVDPlugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
try:
self.plugins[projectpluginmap.NsxPlugins.NSX_T] = t.NsxV3Plugin()
except Exception as e:
LOG.info("NSX-T plugin will not be supported: %s", e)
LOG.warning("NSX-T plugin will not be supported: %s", e)
else:
LOG.info("NSX-T plugin will be supported")
try:
self.plugins[projectpluginmap.NsxPlugins.NSX_V] = v.NsxVPluginV2()
except Exception as e:
LOG.info("NSX-V plugin will not be supported: %s", e)
LOG.warning("NSX-V plugin will not be supported: %s", e)
else:
LOG.info("NSX-V plugin will be supported")
try:
self.plugins[projectpluginmap.NsxPlugins.DVS] = dvs.NsxDvsV2()
except Exception as e:
LOG.info("DVS plugin will not be supported: %s", e)
LOG.warning("DVS plugin will not be supported: %s", e)
else:
LOG.info("DVS plugin will be supported")