def __init__(self):
     """Do the initialization for the firewall service plugin here."""
     self._fortigate = config.fgt_info
     self._driver = config.get_apiclient()
     self.task_manager = tasks.TaskManager()
     self.task_manager.start()
     firewall_db.subscribe()
 def __init__(self):
     """Do the initialization for the firewall service plugin here."""
     self._fortigate = config.fgt_info
     self._driver = config.get_apiclient()
     self.task_manager = tasks.TaskManager()
     self.task_manager.start()
     firewall_db.subscribe()
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""

        self.agent_rpc = FirewallAgentApi(f_const.FW_AGENT, cfg.CONF.host)
        firewall_db.subscribe()

        rpc_worker = service.RpcWorker([self], worker_process_count=0)
        self.add_worker(rpc_worker)
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""
        self.start_rpc_listeners()

        self.agent_rpc = FirewallAgentApi(
            f_const.FW_AGENT,
            cfg.CONF.host
        )
        firewall_db.subscribe()
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""
        self.start_rpc_listeners()

        self.agent_rpc = FirewallAgentApi(
            topics.L3_AGENT,
            cfg.CONF.host
        )
        firewall_db.subscribe()
Example #6
0
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""
        self.endpoints = [FirewallCallbacks(self)]

        self.conn = n_rpc.create_connection(new=True)
        self.conn.create_consumer(topics.FIREWALL_PLUGIN,
                                  self.endpoints,
                                  fanout=False)
        self.conn.consume_in_threads()

        self.agent_rpc = FirewallAgentApi(topics.L3_AGENT, cfg.CONF.host)
        firewall_db.subscribe()
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""
        self.endpoints = [FirewallCallbacks(self)]

        self.conn = n_rpc.create_connection(new=True)
        self.conn.create_consumer(
            topics.FIREWALL_PLUGIN, self.endpoints, fanout=False)
        self.conn.consume_in_threads()

        self.agent_rpc = FirewallAgentApi(
            topics.L3_AGENT,
            cfg.CONF.host
        )
        firewall_db.subscribe()
Example #8
0
    def __init__(self):
        """Override initialization to avoid any RPC setup as MidoNet does not
        rely on any agent to implement FWaaS.  Instead, set the rpc handling
        to the _MidonetFirewallDriver class so that it handles the FWaaS update
        events.
        """

        # Register the FWaaS extensions path
        neutron_extensions.append_api_extensions_path(extensions.__path__)

        # Although callbacks are unnecessary in midonet, use FirewallCallbacks
        # because it contains useful methods for DB updates.
        self.callbacks = fw_plugin.FirewallCallbacks(self)
        self.client = c_base.load_client(cfg.CONF.MIDONET)
        self.agent_rpc = _MidonetFirewallDriver(self.client, self.callbacks)
        self.endpoints = [self.callbacks]  # So that tests don't complain
        firewall_db.subscribe()
Example #9
0
    def __init__(self):
        # Override initialization to avoid any RPC setup as MidoNet does not
        # rely on any agent to implement FWaaS.  Instead, set the rpc handling
        # to the _MidonetFirewallDriver class so that it handles the FWaaS
        # update events.

        # Register the FWaaS extensions path
        neutron_extensions.append_api_extensions_path(extensions.__path__)

        # Although callbacks are unnecessary in midonet, use FirewallCallbacks
        # because it contains useful methods for DB updates.
        self.callbacks = fw_plugin.FirewallCallbacks(self)
        self.client = c_base.load_client(cfg.CONF.MIDONET)
        self.agent_rpc = _MidonetFirewallDriver(self.client, self.callbacks)
        self.endpoints = [self.callbacks]  # So that tests don't complain
        # TODO(yamamoto): Remove this subscribe() call once neutron-fwaas
        # was converted to use registry decorators.
        firewall_db.subscribe()
 def __init__(self):
     """Do the initialization for the firewall service plugin here."""
     LOG.debug('trace')
     firewall_db.subscribe()
     context = Fake_context()