本文整理汇总了Python中neutron.openstack.common.service.launch函数的典型用法代码示例。如果您正苦于以下问题:Python launch函数的具体用法?Python launch怎么用?Python launch使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了launch函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
def main(manager='neutron.services.tunnel.agent.TunnelAgentWithStateReport'):
common_config.init(sys.argv[1:])
config.setup_logging(cfg.CONF)
server = neutron_service.Service.create(
binary='neutron-tunnel-agent',
topic=n_topics.TUNNEL_AGENT,
report_interval=cfg.CONF.tunnel_agent.report_interval,
manager=manager)
service.launch(server).wait()
示例2: main
def main(manager='neutron.agent.l3_highperformance_agent.L3NATAgentWithStateReport'):
_register_opts(cfg.CONF)
common_config.init(sys.argv[1:])
config.setup_logging()
server = neutron_service.Service.create(
binary='neutron-l3-agent',
topic=topics.L3_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager=manager)
service.launch(server).wait()
示例3: launch
def launch(binary, manager, topic=None):
cfg.CONF(project='neutron')
common_cfg.init(sys.argv[1:])
config.setup_logging()
report_period = cfg.CONF.ml2_cisco_apic.apic_agent_report_interval
poll_period = cfg.CONF.ml2_cisco_apic.apic_agent_poll_interval
server = service.Service.create(
binary=binary, manager=manager, topic=topic,
report_interval=report_period, periodic_interval=poll_period)
svc.launch(server).wait()
示例4: main
def main():
register_options()
common_config.init(sys.argv[1:])
config.setup_logging(cfg.CONF)
server = neutron_service.Service.create(
binary='neutron-dhcp-agent',
topic=topics.DHCP_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager='neutron.agent.dhcp_agent.DhcpAgentWithStateReport')
service.launch(server).wait()
示例5: main
def main(manager='neutron.agent.l3_data_engine.L3DataEngineWithStateReport'):
_register_opts(cfg.CONF)
common_config.init(sys.argv[1:])
config.setup_logging()
server = neutron_service.Service.create(
binary='neutron-l3-data-engine',
topic='%s-%s' % (topics.L3_DATAENGINE,
cfg.CONF.agent_index),
report_interval=cfg.CONF.AGENT.report_interval,
manager=manager)
service.launch(server).wait()
示例6: main
def main():
eventlet.monkey_patch()
register_options()
cfg.CONF(project='neutron')
config.setup_logging(cfg.CONF)
server = neutron_service.Service.create(
binary='neutron-dhcp-agent',
topic=topics.DHCP_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager='neutron.agent.dhcp_agent.DhcpAgentWithStateReport')
service.launch(server).wait()
示例7: main
def main(manager="neutron.services.skycloud.portforward_agent.PortForwardAgent"):
eventlet.monkey_patch()
conf = cfg.CONF
conf(project='neutron')
config.setup_logging(conf)
legacy.modernize_quantum_config(conf)
server = neutron_service.Service.create(
binary='neutron-portforward-agent',
topic=skycloud_constants.PORT_FORWARD_AGENT_TOPIC,
report_interval=60, host=conf.host,
manager=manager)
service.launch(server).wait()
示例8: main
def main(manager='dragonflow.neutron.agent.l3.l3_controller_agent.'
'L3ControllerAgentWithStateReport'):
l3_agent.register_opts(cfg.CONF)
common_config.init(sys.argv[1:])
config.setup_logging()
cfg.CONF.set_override('router_delete_namespaces', True)
server = neutron_service.Service.create(
binary='neutron-l3-controller-agent',
topic=topics.L3_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager=manager)
service.launch(server).wait()
示例9: main
def main():
conf = cfg.CONF
conf.register_opts(MeteringAgent.Opts)
config.register_agent_state_opts_helper(conf)
common_config.init(sys.argv[1:])
config.setup_logging()
server = neutron_service.Service.create(
binary='neutron-metering-agent',
topic=topics.METERING_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager='neutron.services.metering.agents.'
'metering_agent.MeteringAgentWithStateReport')
service.launch(server).wait()
示例10: main
def main():
conf = cfg.CONF
conf.register_opts(QosAgent.Opts)
config.register_agent_state_opts_helper(conf)
config.register_root_helper(conf)
common_config.init(sys.argv[1:])
config.setup_logging()
server = neutron_service.Service.create(
binary='neutron-qos-agent',
topic=qos_rpc_agent_api.QOS_AGENT,
manager='neutron.services.qos.agents.'
'qos_agent.QosAgentWithStateReport')
service.launch(server).wait()
示例11: main
def main(manager='neutron.services.vm.agent'
'.agent.ServiceVMAgentWithStateReport'):
conf = cfg.CONF
_register_options(conf)
common_config.init(sys.argv[1:])
conf(project='neutron')
config.setup_logging(conf)
server = neutron_service.Service.create(
binary='neutron-servicevm-agent',
topic=topics.SERVICEVM_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager=manager)
service.launch(server).wait()
示例12: main
def main():
eventlet.monkey_patch()
conf = cfg.CONF
conf.register_opts(MeteringAgent.Opts)
config.register_agent_state_opts_helper(conf)
config.register_root_helper(conf)
conf(project='neutron')
config.setup_logging(conf)
server = neutron_service.Service.create(
binary='neutron-metering-agent',
topic=topics.METERING_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager='neutron.services.metering.agents.'
'metering_agent.MeteringAgentWithStateReport')
service.launch(server).wait()
示例13: main
def main(manager='neutron.plugins.cisco.cfg_agent.'
'cfg_agent.CiscoCfgAgentWithStateReport'):
conf = cfg.CONF
conf.register_opts(CiscoCfgAgent.OPTS, "cfg_agent")
config.register_agent_state_opts_helper(conf)
conf.register_opts(interface.OPTS)
conf.register_opts(external_process.OPTS)
common_config.init(sys.argv[1:])
conf(project='neutron')
config.setup_logging()
server = neutron_service.Service.create(
binary='neutron-cisco-cfg-agent',
topic=c_constants.CFG_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager=manager)
service.launch(server).wait()
示例14: main
def main():
cfg.CONF.register_opts(OPTS)
cfg.CONF.register_opts(manager.OPTS)
config.register_root_helper(cfg.CONF)
common_config.init(sys.argv[1:])
config.setup_logging()
mgr = manager.LbaasProxyManager(cfg.CONF)
svc = LbaasProxyService(
host=cfg.CONF.host,
topic='%s-%s' % (topics.LOADBALANCER_INTEGRATION,
cfg.CONF.cluster_name),
manager=mgr
)
service.launch(svc).wait()
示例15: main
def main(manager='neutron.agent.l3_agent.L3NATAgentWithStateReport'):
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='neutron')
config.setup_logging(conf)
legacy.modernize_quantum_config(conf)
server = neutron_service.Service.create(
binary='neutron-l3-agent',
topic=topics.L3_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager=manager)
service.launch(server).wait()