def main(): conf = config.setup_conf() conf.register_opts(MetadataRouteAgent.OPTS) conf(sys.argv) config.setup_logging(conf) mgr = MetadataRouteAgent(conf) mgr.daemon_loop()
def main(): conf = config.setup_conf() conf.register_opts(L3NATAgent.OPTS) conf.register_opts(interface.OPTS) conf(sys.argv) config.setup_logging(conf) mgr = L3NATAgent(conf) mgr.daemon_loop()
def main(): eventlet.monkey_patch() register_options() cfg.CONF(project='quantum') config.setup_logging(cfg.CONF) server = quantum_service.Service.create( binary='quantum-dhcp-agent', topic=topics.DHCP_AGENT, report_interval=cfg.CONF.AGENT.report_interval, manager='quantum.agent.dhcp_agent.DhcpAgentWithStateReport') service.launch(server).wait()
def main(): eventlet.monkey_patch() conf = cfg.CONF conf.register_opts(L3NATAgent.OPTS) conf.register_opts(interface.OPTS) conf.register_opts(external_process.OPTS) conf(sys.argv) config.setup_logging(conf) server = quantum_service.Service.create(binary='quantum-l3-agent', topic=topics.L3_AGENT) service.launch(server).wait()
def main(): conf = config.setup_conf() conf.register_opts(DhcpAgent.OPTS) conf.register_opts(DeviceManager.OPTS) conf.register_opts(dhcp.OPTS) conf.register_opts(interface.OPTS) conf(sys.argv) config.setup_logging(conf) mgr = DhcpAgent(conf) mgr.daemon_loop()
def main(): eventlet.monkey_patch() cfg.CONF.register_opts(DhcpAgent.OPTS) cfg.CONF.register_opts(DeviceManager.OPTS) cfg.CONF.register_opts(DhcpLeaseRelay.OPTS) cfg.CONF.register_opts(dhcp.OPTS) cfg.CONF.register_opts(interface.OPTS) cfg.CONF(project='quantum') config.setup_logging(cfg.CONF) mgr = DhcpAgent(cfg.CONF) mgr.run()
def main(): eventlet.monkey_patch() cfg.CONF.register_opts(DhcpAgent.OPTS) cfg.CONF.register_opts(DeviceManager.OPTS) cfg.CONF.register_opts(DhcpLeaseRelay.OPTS) cfg.CONF.register_opts(dhcp.OPTS) cfg.CONF.register_opts(interface.OPTS) cfg.CONF(args=sys.argv, project='quantum') config.setup_logging(cfg.CONF) mgr = DhcpAgent(cfg.CONF) mgr.run()
def initialize_app(self, argv): super(QuantumDebugShell, self).initialize_app(argv) if not self.options.config_file: raise exc.CommandError( "You must provide a config file for bridge -" " either --config-file or env[QUANTUM_TEST_CONFIG_FILE]") client = self.client_manager.quantum cfg.CONF.register_opts(interface.OPTS) cfg.CONF.register_opts(QuantumDebugAgent.OPTS) cfg.CONF(['--config-file', self.options.config_file]) config.setup_logging(cfg.CONF) driver = importutils.import_object(cfg.CONF.interface_driver, cfg.CONF) self.debug_agent = QuantumDebugAgent(cfg.CONF, client, driver)
def main(): eventlet.monkey_patch() conf = cfg.CONF config.register_root_helper(conf) conf.register_opts(ServiceAgent.OPTS) conf() config.setup_logging(conf) manager = 'quantum.agent.services.service_agent.ServiceAgent' server = quantum_service.Service.create(binary='quantum-svc-agent', topic=topics.SVC_AGENT, manager=manager) service.launch(server).wait()
def main(): eventlet.monkey_patch() conf = cfg.CONF conf.register_opts(L3NATAgent.OPTS) config.register_agent_state_opts_helper(conf) config.register_root_helper(conf) conf.register_opts(interface.OPTS) conf.register_opts(external_process.OPTS) conf() config.setup_logging(conf) server = quantum_service.Service.create( binary='quantum-l3-agent', topic=topics.L3_AGENT, report_interval=cfg.CONF.AGENT.report_interval) service.launch(server).wait()
def main(): eventlet.monkey_patch() cfg.CONF.register_opts(DhcpAgent.OPTS) config.register_agent_state_opts_helper(cfg.CONF) config.register_root_helper(cfg.CONF) cfg.CONF.register_opts(DeviceManager.OPTS) cfg.CONF.register_opts(DhcpLeaseRelay.OPTS) cfg.CONF.register_opts(dhcp.OPTS) cfg.CONF.register_opts(interface.OPTS) cfg.CONF(project='quantum') config.setup_logging(cfg.CONF) server = quantum_service.Service.create( binary='quantum-dhcp-agent', topic=topics.DHCP_AGENT, report_interval=cfg.CONF.AGENT.report_interval) service.launch(server).wait()
def main(): eventlet.monkey_patch() conf = cfg.CONF conf.register_opts(L3NATAgent.OPTS) config.register_agent_state_opts_helper(conf) config.register_root_helper(conf) conf.register_opts(interface.OPTS) conf.register_opts(external_process.OPTS) conf(project='quantum') config.setup_logging(conf) server = quantum_service.Service.create( binary='quantum-l3-agent', topic=topics.L3_AGENT, report_interval=cfg.CONF.AGENT.report_interval, manager='quantum.agent.l3_agent.L3NATAgentWithStateReport') service.launch(server).wait()
def main(): eventlet.monkey_patch() cfg.CONF.register_opts(OPTS) cfg.CONF.register_opts(manager.OPTS) # import interface options just in case the driver uses namespaces cfg.CONF.register_opts(interface.OPTS) config.register_root_helper(cfg.CONF) cfg.CONF(project='quantum') config.setup_logging(cfg.CONF) mgr = manager.LbaasAgentManager(cfg.CONF) svc = LbaasAgentService(host=cfg.CONF.host, topic=plugin_driver.TOPIC_LOADBALANCER_AGENT, manager=mgr) service.launch(svc).wait()
def main(): eventlet.monkey_patch() cfg.CONF.register_opts(OPTS) cfg.CONF.register_opts(manager.OPTS) # import interface options just in case the driver uses namespaces cfg.CONF.register_opts(interface.OPTS) config.register_root_helper(cfg.CONF) cfg.CONF(project='quantum') config.setup_logging(cfg.CONF) mgr = manager.LbaasAgentManager(cfg.CONF) svc = LbaasAgentService( host=cfg.CONF.host, topic=topics.LOADBALANCER_AGENT, manager=mgr ) service.launch(svc).wait()