def sfc_plugin(self): if not self._sfc_plugin: self._sfc_plugin = directory.get_plugin(sfc_ext.SFC_EXT) if not self._sfc_plugin: LOG.error("No SFC service plugin found.") raise exc.GroupPolicyDeploymentError() return self._sfc_plugin
def plugin(self): if not self._core_plugin: self._core_plugin = directory.get_plugin() if not self._core_plugin: LOG.error("No Core plugin found.") raise exc.GroupPolicyDeploymentError() return self._core_plugin
def l3_plugin(self): if not self._l3_plugin: self._l3_plugin = directory.get_plugin(n_constants.L3) if not self._l3_plugin: LOG.error("No L3 service plugin found.") raise exc.GroupPolicyDeploymentError() return self._l3_plugin
def _servicechain_plugin(self): # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. servicechain_plugin = directory.get_plugin(pconst.SERVICECHAIN) if not servicechain_plugin: LOG.error("No Servicechain service plugin found.") raise exc.GroupPolicyDeploymentError() return servicechain_plugin
def _group_policy_plugin(self): # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. group_policy_plugin = directory.get_plugin(pconst.GROUP_POLICY) if not group_policy_plugin: LOG.error("No GroupPolicy service plugin found.") raise exc.GroupPolicyDeploymentError() return group_policy_plugin
def _l3_plugin(self): # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. l3_plugin = directory.get_plugin(nl_const.L3) if not l3_plugin: LOG.error("No L3 router service plugin found.") raise exc.GroupPolicyDeploymentError() return l3_plugin
def flowc_plugin(self): if not self._flowc_plugin: self._flowc_plugin = directory.get_plugin( flowc_ext.FLOW_CLASSIFIER_EXT) if not self._flowc_plugin: LOG.error("No FlowClassifier service plugin found.") raise exc.GroupPolicyDeploymentError() return self._flowc_plugin
def _servicechain_plugin(self): # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. plugins = manager.NeutronManager.get_service_plugins() servicechain_plugin = plugins.get(pconst.SERVICECHAIN) if not servicechain_plugin: LOG.error(_LE("No Servicechain service plugin found.")) raise exc.GroupPolicyDeploymentError() return servicechain_plugin
def _group_policy_plugin(self): # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. plugins = manager.NeutronManager.get_service_plugins() group_policy_plugin = plugins.get(pconst.GROUP_POLICY) if not group_policy_plugin: LOG.error(_LE("No GroupPolicy service plugin found.")) raise exc.GroupPolicyDeploymentError() return group_policy_plugin
def _l3_plugin(self): # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. plugins = manager.NeutronManager.get_service_plugins() l3_plugin = plugins.get(pconst.L3_ROUTER_NAT) if not l3_plugin: LOG.error(_LE("No L3 router service plugin found.")) raise exc.GroupPolicyDeploymentError() return l3_plugin
def _qos_plugin(self): # Probably as well: # REVISIT(rkukura): Need initialization method after all # plugins are loaded to grab and store plugin. qos_plugin = directory.get_plugin(pconst.QOS) if not qos_plugin: LOG.error("No QoS service plugin found.") raise exc.GroupPolicyDeploymentError() return qos_plugin
def initialize(self): self._gbp_plugin = None self._sc_plugin = None # Verify that proxy_group extension is loaded if pg_ext.PROXY_GROUP not in cfg.CONF.group_policy.extension_drivers: LOG.error("proxy_group GBP driver extension is mandatory for " "traffic stitching plumber.") raise exc.GroupPolicyDeploymentError()
def aim_flowc(self): if not self._aim_flowc_driver: try: self._aim_flowc_driver = ( self.flowc_plugin.driver_manager.drivers['aim'].obj) except (KeyError, AttributeError): LOG.error("No AIM driver found") raise exc.GroupPolicyDeploymentError() return self._aim_flowc_driver
def aim_mech(self): if not self._aim_mech_driver: try: self._aim_mech_driver = ( self.plugin.mechanism_manager.mech_drivers['apic_aim'].obj) except (KeyError, AttributeError): LOG.error("No AIM driver found") raise exc.GroupPolicyDeploymentError() return self._aim_mech_driver