From 28c87c28f9992d1fc17975fc208f5adbacde33c9 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Tue, 6 Mar 2018 10:39:33 +0200 Subject: [PATCH] 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 --- vmware_nsx/plugins/nsx_v3/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vmware_nsx/plugins/nsx_v3/plugin.py b/vmware_nsx/plugins/nsx_v3/plugin.py index 320f7b56f9..f2b7eb5c33 100644 --- a/vmware_nsx/plugins/nsx_v3/plugin.py +++ b/vmware_nsx/plugins/nsx_v3/plugin.py @@ -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)