def _grouppolicy_plugin(self): # REVISIT(Magesh): Need initialization method after all # plugins are loaded to grab and store plugin. grouppolicy_plugin = directory.get_plugin(pconst.GROUP_POLICY) if not grouppolicy_plugin: LOG.error("No Grouppolicy service plugin found.") raise s_exc.ServiceChainDeploymentError() return grouppolicy_plugin
def _grouppolicy_plugin(self): # REVISIT(Magesh): Need initialization method after all # plugins are loaded to grab and store plugin. plugins = manager.NeutronManager.get_service_plugins() grouppolicy_plugin = plugins.get(pconst.GROUP_POLICY) if not grouppolicy_plugin: LOG.error(_("No Grouppolicy service plugin found.")) raise s_exc.ServiceChainDeploymentError() return grouppolicy_plugin