From 75128cb2b7a3273653ec4219aeffc5f818b678e7 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 26 Jun 2017 03:56:10 -0700 Subject: [PATCH] NSX|V3: fix trunk initialization The following broke the driver: 1. Commit 20097d44bf686c74c3dea236b730af51162f9408 2. Commit baef191d1f5b26119e098d4ae72fb032f5a79d0e Now the service plugin successfully starts! A Fugato! Change-Id: I0d2e2c6bf9e2d2d07abe6c86716db174693d1262 --- vmware_nsx/common/nsx_constants.py | 2 +- vmware_nsx/services/trunk/nsx_v3/driver.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/common/nsx_constants.py b/vmware_nsx/common/nsx_constants.py index f9c54d0405..4e733b6c68 100644 --- a/vmware_nsx/common/nsx_constants.py +++ b/vmware_nsx/common/nsx_constants.py @@ -17,4 +17,4 @@ VIF_TYPE_DVS = 'dvs' # NSXv3 CORE PLUGIN PATH -VMWARE_NSX_V3_PLUGIN_NAME = 'vmware_nsx.plugin.NsxV3Plugin' +VMWARE_NSX_V3_PLUGIN_NAME = 'vmware_nsxv3' diff --git a/vmware_nsx/services/trunk/nsx_v3/driver.py b/vmware_nsx/services/trunk/nsx_v3/driver.py index 9cef0e7843..41ef2e00d7 100644 --- a/vmware_nsx/services/trunk/nsx_v3/driver.py +++ b/vmware_nsx/services/trunk/nsx_v3/driver.py @@ -173,6 +173,7 @@ class NsxV3TrunkDriver(base.DriverBase): SUPPORTED_SEGMENTATION_TYPES, agent_type=None, can_trunk_bound_port=False) + @registry.receives(trunk_consts.TRUNK_PLUGIN, [events.AFTER_INIT]) def register(self, resource, event, trigger, **kwargs): super(NsxV3TrunkDriver, self).register( resource, event, trigger, **kwargs)