run OFP if no application is specified

Keep the old behavior.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2013-11-24 03:21:21 +09:00
parent cafb17781b
commit 1593025b9f

View File

@ -62,6 +62,9 @@ def main():
log.init_log() log.init_log()
app_lists = CONF.app_lists + CONF.app app_lists = CONF.app_lists + CONF.app
# keep old behaivor, run ofp if no application is specified.
if not app_lists:
app_lists = ['ryu.controller.ofp_handler']
app_mgr = AppManager.get_instance() app_mgr = AppManager.get_instance()
app_mgr.load_apps(app_lists) app_mgr.load_apps(app_lists)