本文整理汇总了Python中ryu.base.app_manager.AppManager.run_apps方法的典型用法代码示例。如果您正苦于以下问题:Python AppManager.run_apps方法的具体用法?Python AppManager.run_apps怎么用?Python AppManager.run_apps使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ryu.base.app_manager.AppManager
的用法示例。
在下文中一共展示了AppManager.run_apps方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from ryu.base.app_manager import AppManager [as 别名]
# 或者: from ryu.base.app_manager.AppManager import run_apps [as 别名]
def main():
common_config.init(sys.argv[1:])
# the following check is a transitional workaround to make this work
# with different versions of ryu.
# TODO(yamamoto) remove this later
if ryu_cfg.CONF is not cfg.CONF:
ryu_cfg.CONF(project="ryu", args=[])
common_config.setup_logging()
AppManager.run_apps(["neutron.plugins.ofagent.agent.ofa_neutron_agent"])
示例2: main
# 需要导入模块: from ryu.base.app_manager import AppManager [as 别名]
# 或者: from ryu.base.app_manager.AppManager import run_apps [as 别名]
def main():
args = sys.argv[1:]
try:
CONF(args=args, prog=sys.argv[0],
project='daolicontroller', version='1.1',
default_config_files=['/etc/daolicontroller/daolicontroller.conf'])
except cfg.ConfigFilesNotFoundError:
CONF(args=args, prog=sys.argv[0],
project='daolicontroller', version='1.1')
log.init_log()
#if ryu_cfg.CONF is not CONF:
# ryu_cfg.CONF(args=args, project='ryu')
#if CONF.enable_debugger:
# LOG = logging.getLogger('daolicontroller')
# msg = 'debugging is available (--enable-debugger option is turned on)'
# LOG.info(msg)
#else:
#hub.patch(thread=True)
AppManager.run_apps(['daolicontroller.ofa_agent'])
示例3: main
# 需要导入模块: from ryu.base.app_manager import AppManager [as 别名]
# 或者: from ryu.base.app_manager.AppManager import run_apps [as 别名]
def main():
config.parse_args(sys.argv, default_config_files=DEFAULT_CONFIG)
if ryu_cfg.CONF is not CONF:
ryu_cfg.CONF(project='ryu', args=[])
logging.setup(CONF, "daolicontroller")
AppManager.run_apps(['daolicontroller.ofa_agent'])
示例4: main
# 需要导入模块: from ryu.base.app_manager import AppManager [as 别名]
# 或者: from ryu.base.app_manager.AppManager import run_apps [as 别名]
def main():
cfg.CONF(project='ryu')
logging_config.setup_logging(cfg.CONF)
AppManager.run_apps(['neutron.plugins.ofagent.agent.ofa_neutron_agent'])
示例5: main
# 需要导入模块: from ryu.base.app_manager import AppManager [as 别名]
# 或者: from ryu.base.app_manager.AppManager import run_apps [as 别名]
def main():
config.init(sys.argv[1:], default_config_files=DEFAULT_CONFIG)
if ryu_cfg.CONF is not cfg.CONF:
ryu_cfg.CONF(project='ryu', args=[])
config.setup_logging()
AppManager.run_apps(['daoliagent.ofa_agent'])