本文整理汇总了Python中neutron.openstack.common.service.launch函数的典型用法代码示例。如果您正苦于以下问题:Python launch函数的具体用法?Python launch怎么用?Python launch使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了launch函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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()
开发者ID:CingHu,项目名称:neutron-ustack,代码行数:9,代码来源:agent.py
示例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()
开发者ID:HybridCloud-dew,项目名称:hws,代码行数:10,代码来源:l3_highperformance_agent.py
示例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()
开发者ID:tbachman,项目名称:apic-ml2-driver,代码行数:10,代码来源:apic_topology.py
示例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()
开发者ID:CingHu,项目名称:neutron-ustack,代码行数:10,代码来源:dhcp_agent.py
示例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()
开发者ID:HybridCloud-dew,项目名称:hws,代码行数:11,代码来源:l3_data_engine.py
示例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()
开发者ID:actus10,项目名称:neutron,代码行数:11,代码来源:dhcp_agent.py
示例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()
开发者ID:swordboy,项目名称:neutron-portforward-service,代码行数:12,代码来源:portforward_agent.py
示例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()
开发者ID:CingHu,项目名称:dragonflow,代码行数:12,代码来源:l3_sdn_agent.py
示例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()
开发者ID:kongseokhwan,项目名称:kulcloud-iitp-neutron,代码行数:13,代码来源:metering_agent.py
示例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()
开发者ID:chenyanfun,项目名称:neutron-qos,代码行数:13,代码来源:qos_agent.py
示例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()
开发者ID:CingHu,项目名称:neutron-ustack,代码行数:13,代码来源:agent.py
示例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()
开发者ID:uramanan,项目名称:neutron,代码行数:15,代码来源:metering_agent.py
示例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()
开发者ID:bradleyjones,项目名称:neutron,代码行数:16,代码来源:cfg_agent.py
示例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()
开发者ID:HybridCloud-dew,项目名称:hws,代码行数:16,代码来源:proxy.py
示例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()
开发者ID:674009287,项目名称:neutron,代码行数:17,代码来源:l3_agent.py
示例16: main
def main(manager='neutron.agent.l3_agent.L3NATAgentWithStateReport'):
conf = cfg.CONF
conf.register_opts(L3NATAgent.OPTS)
config.register_interface_driver_opts_helper(conf)
config.register_use_namespaces_opts_helper(conf)
config.register_agent_state_opts_helper(conf)
config.register_root_helper(conf)
conf.register_opts(interface.OPTS)
conf.register_opts(external_process.OPTS)
common_config.init(sys.argv[1:])
config.setup_logging(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()
开发者ID:aignatov,项目名称:neutron,代码行数:17,代码来源:l3_agent.py
示例17: main
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_interface_driver_opts_helper(cfg.CONF)
config.register_agent_state_opts_helper(cfg.CONF)
config.register_root_helper(cfg.CONF)
cfg.CONF(project="neutron")
config.setup_logging(cfg.CONF)
legacy.modernize_quantum_config(cfg.CONF)
mgr = manager.LbaasAgentManager(cfg.CONF)
svc = LbaasAgentService(host=cfg.CONF.host, topic=topics.LOADBALANCER_AGENT, manager=mgr)
service.launch(svc).wait()
开发者ID:nabilmaad,项目名称:neutron,代码行数:17,代码来源:agent.py
示例18: main
def main():
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_interface_driver_opts_helper(cfg.CONF)
config.register_agent_state_opts_helper(cfg.CONF)
common_config.init(sys.argv[1:])
config.setup_logging()
mgr = manager.LbaasAgentManager(cfg.CONF)
svc = LbaasAgentService(
host=cfg.CONF.host,
topic=topics.LOADBALANCER_AGENT,
manager=mgr
)
service.launch(svc).wait()
开发者ID:Vikash082,项目名称:neutron-lbaas,代码行数:18,代码来源:agent.py
示例19: main
def main():
conf = cfg.CONF
conf.register_opts(vArmourL3NATAgent.OPTS)
config.register_interface_driver_opts_helper(conf)
config.register_use_namespaces_opts_helper(conf)
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)
server = neutron_service.Service.create(
binary='neutron-l3-agent',
topic=topics.L3_AGENT,
report_interval=cfg.CONF.AGENT.report_interval,
manager='neutron.services.firewall.agents.varmour.varmour_router.'
'vArmourL3NATAgentWithStateReport')
service.launch(server).wait()
开发者ID:NKSG,项目名称:neutron,代码行数:18,代码来源:varmour_router.py
示例20: main
def main():
eventlet.monkey_patch()
cfg.CONF.register_opts(OPTS)
cfg.CONF.register_opts(manager.OPTS)
config.register_agent_state_opts_helper(cfg.CONF)
config.register_root_helper(cfg.CONF)
cfg.CONF(project='neutron')
config.setup_logging(cfg.CONF)
legacy.modernize_quantum_config(cfg.CONF)
mgr = manager.LbaasAgentManager(cfg.CONF)
svc = LbaasAgentService(
host=mgr.agent_host,
topic=plugin_driver.TOPIC_LOADBALANCER_AGENT,
manager=mgr
)
service.launch(svc).wait()
开发者ID:vijayendrabvs,项目名称:ssl-f5-neutron-lbaas,代码行数:18,代码来源:agent.py
注:本文中的neutron.openstack.common.service.launch函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论