def __init__(self, image_api=None, **kwargs): super(API, self).__init__(**kwargs) self.image_api = image_api or image.API() self.engine_rpcapi = rpcapi.EngineAPI() self.network_api = network.API() self.quota = quota.Quota() self.quota.register_resource(objects.quota.ServerResource()) self.consoleauth_rpcapi = consoleauth_rpcapi.ConsoleAuthAPI()
def __init__(self, host, topic): super(BaseEngineManager, self).__init__(CONF) if not host: host = CONF.host self.host = host self.topic = topic self.network_api = network.API() self.driver = driver.load_engine_driver(CONF.engine.engine_driver) self.engine_rpcapi = rpcapi.EngineAPI() self._sync_power_pool = greenpool.GreenPool( size=CONF.engine.sync_power_state_pool_size) self._syncs_in_progress = {} self._started = False
def __init__(self, *args, **kwargs): super(FloatingIPController, self).__init__(*args, **kwargs) self.network_api = network.API()