def _fetch_sf_details(self, service_function_id, tenant_id): if not hasattr(self, 'm2'): self.m2 = m2c(username=cfg.CONF.neutron.username, password=cfg.CONF.neutron.password, tenant_id=tenant_id, auth_url=cfg.CONF.neutron.auth_url) return self.m2.show_service_function(service_function_id)
def _fetch_sf_group(service_group_id, tenant_id): if not service_group_id: return None m2 = m2c( username=ocfg.CONF.neutron.username, password=ocfg.CONF.neutron.password, tenant_id=tenant_id, auth_url=ocfg.CONF.neutron.auth_url, ) return m2.show_service_function_group(service_group_id)