def __init__(self):
     super(NECNWAL3Plugin, self).__init__()
     l3_db.subscribe()
     self.start_rpc_listeners()
     self.nwa_proxies = {}
     self.resource_groups = nwa_com_utils.load_json_from_file(
         'resource_group', cfg.CONF.NWA.resource_group_file,
         cfg.CONF.NWA.resource_group, default_value=[])
Example #2
0
 def __init__(self):
     self.router_scheduler = importutils.import_object(cfg.CONF.router_scheduler_driver)
     self.start_periodic_l3_agent_status_check()
     super(L3RouterPlugin, self).__init__()
     if "dvr" in self.supported_extension_aliases:
         l3_dvrscheduler_db.subscribe()
     l3_db.subscribe()
     self.start_rpc_listeners()
Example #3
0
 def test_subscribe_address_scope_of_subnetpool(self, notify):
     l3_db.subscribe()
     registry.notify(resources.SUBNETPOOL_ADDRESS_SCOPE,
                     events.AFTER_UPDATE, mock.ANY, context=mock.ANY,
                     subnetpool_id='fake_id')
     notify.assert_called_once_with(resources.SUBNETPOOL_ADDRESS_SCOPE,
                                    events.AFTER_UPDATE, mock.ANY,
                                    context=mock.ANY,
                                    subnetpool_id='fake_id')
 def __init__(self):
     self.router_scheduler = importutils.import_object(
         cfg.CONF.router_scheduler_driver)
     self.start_periodic_l3_agent_status_check()
     super(L3RouterPlugin, self).__init__()
     if 'dvr' in self.supported_extension_aliases:
         l3_dvrscheduler_db.subscribe()
     l3_db.subscribe()
     self.start_rpc_listeners()
Example #5
0
 def test_subscribe_address_scope_of_subnetpool(self, notify):
     l3_db.subscribe()
     registry.notify(resources.SUBNETPOOL_ADDRESS_SCOPE,
                     events.AFTER_UPDATE, mock.ANY, context=mock.ANY,
                     subnetpool_id='fake_id')
     notify.assert_called_once_with(resources.SUBNETPOOL_ADDRESS_SCOPE,
                                    events.AFTER_UPDATE, mock.ANY,
                                    context=mock.ANY,
                                    subnetpool_id='fake_id')
Example #6
0
    def __init__(self):
        super(MidonetL3ServicePlugin, self).__init__()
        l3_db.subscribe()

        # Instantiate MidoNet API client
        self.client = c_base.load_client(cfg.CONF.MIDONET)

        # Avoid any side effect from DVR getting set to true
        cfg.CONF.set_override("router_distributed", False)
        neutron_extensions.append_api_extensions_path(extensions.__path__)
Example #7
0
 def __init__(self):
     super(GceRouterPlugin, self).__init__()
     l3_db.subscribe()
     self.gce_zone = gceconf.zone
     self.gce_region = gceconf.region
     self.gce_project = gceconf.project_id
     self.gce_svc_key = gceconf.service_key_path
     self._gce_svc = None
     LOG.info("GCE Router plugin init with %s project, %s region" %
              (self.gce_project, self.gce_region))
Example #8
0
 def __init__(self):
     LOG.info(_LI("Init huawei l3 driver."))
     self.setup_rpc()
     self.router_scheduler = importutils.import_object(
         cfg.CONF.router_scheduler_driver)
     self.start_periodic_l3_agent_status_check()
     super(HuaweiACL3RouterPlugin, self).__init__()
     if 'dvr' in self.supported_extension_aliases:
         l3_dvrscheduler_db.subscribe()
     l3_db.subscribe()
     LOG.info(_LI("Initialization finished successfully"
              " for huawei l3 driver."))
Example #9
0
 def __init__(self):
     LOG.info(_LI("Init huawei l3 driver."))
     self.setup_rpc()
     self.router_scheduler = importutils.import_object(
         cfg.CONF.router_scheduler_driver)
     self.start_periodic_l3_agent_status_check()
     super(HuaweiACL3RouterPlugin, self).__init__()
     if 'dvr' in self.supported_extension_aliases:
         l3_dvrscheduler_db.subscribe()
     l3_db.subscribe()
     LOG.info(
         _LI("Initialization finished successfully"
             " for huawei l3 driver."))
Example #10
0
    def __init__(self):
        self.router_scheduler = importutils.import_object(
            cfg.CONF.router_scheduler_driver)
        self.add_periodic_l3_agent_status_check()
        super(L3RouterPlugin, self).__init__()
        if 'dvr' in self.supported_extension_aliases:
            l3_dvrscheduler_db.subscribe()
        l3_db.subscribe()
        self.agent_notifiers.update(
            {n_const.AGENT_TYPE_L3: l3_rpc_agent_api.L3AgentNotifyAPI()})

        rpc_worker = service.RpcWorker([self], worker_process_count=0)

        self.add_worker(rpc_worker)
Example #11
0
    def __init__(self):
        self.router_scheduler = importutils.import_object(
            cfg.CONF.router_scheduler_driver)
        self.add_periodic_l3_agent_status_check()
        super(L3RouterPlugin, self).__init__()
        if 'dvr' in self.supported_extension_aliases:
            l3_dvrscheduler_db.subscribe()
        l3_db.subscribe()
        self.agent_notifiers.update(
            {n_const.AGENT_TYPE_L3: l3_rpc_agent_api.L3AgentNotifyAPI()})

        rpc_worker = service.RpcWorker([self], worker_process_count=0)

        self.add_worker(rpc_worker)
Example #12
0
 def __init__(self):
     self.aws_utils = AwsUtils()
     super(AwsRouterPlugin, self).__init__()
     l3_db.subscribe()
Example #13
0
 def __init__(self):
     super(MidonetPluginV2, self).__init__()
     l3_db.subscribe()