Address outstanding TODO for callback event

Change 2c8debdc57, so this can
be taken care of.

Change-Id: Ic1555ebb435543565613e1d0f8c25bc9dc48dd67
This commit is contained in:
Armando Migliaccio 2016-07-08 11:04:40 -07:00
parent fb88d07bd1
commit 48f6c9caa4
2 changed files with 2 additions and 4 deletions

View File

@ -37,8 +37,7 @@ class TrunkPlugin(service_base.ServicePluginBase,
def __init__(self):
self._segmentation_types = {}
#TODO(tidwellr) notify using events.AFTER_INIT once available
registry.notify(constants.TRUNK_PLUGIN, events.AFTER_CREATE, self)
registry.notify(constants.TRUNK_PLUGIN, events.AFTER_INIT, self)
LOG.debug('Trunk plugin loaded')
def add_segmentation_type(self, segmentation_type, id_validator):

View File

@ -23,9 +23,8 @@ LOG = logging.getLogger(__name__)
def register():
#TODO(tidwellr) register for AFTER_INIT once available
registry.subscribe(handler, trunk_consts.TRUNK_PLUGIN,
events.AFTER_CREATE)
events.AFTER_INIT)
LOG.debug('Registering for trunk support')