NSX-V3 Add vlan transparent warnings on init

Plugin init should not fail in case vlan transparent is configured
while not supported by the backend.
Issue a warning instead.

Change-Id: Ie91d581ef74f2b8f9e8014c36d520b106aab3e9b
This commit is contained in:
Adit Sarfaty 2018-03-06 10:39:33 +02:00
parent 527eca9f73
commit 28c87c28f9

View File

@ -301,9 +301,8 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
if self.nsxlib.feature_supported(nsxlib_consts.FEATURE_TRUNK_VLAN):
self.supported_extension_aliases.append("vlan-transparent")
else:
raise NotImplementedError(
_("Current NSX version %s doesn't support "
"transparent vlans") % self.nsxlib.get_version())
LOG.warning("Current NSX version %s doesn't support "
"transparent vlans", self.nsxlib.get_version())
# Register NSXv3 trunk driver to support trunk extensions
self.trunk_driver = trunk_driver.NsxV3TrunkDriver.create(self)