No functional changes are intended.
Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/cmd/ofa_neutron_agent.py | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/ryu/cmd/ofa_neutron_agent.py b/ryu/cmd/ofa_neutron_agent.py
index a194f0b..5a12f3a 100755
--- a/ryu/cmd/ofa_neutron_agent.py
+++ b/ryu/cmd/ofa_neutron_agent.py
@@ -25,7 +25,6 @@ from ryu import cfg
from neutron.common import config as logging_config
from neutron.openstack.common import log as logging
-from ryu.app import wsgi
from ryu.base.app_manager import AppManager
@@ -35,18 +34,7 @@ LOG = logging.getLogger(__name__)
def main():
cfg.CONF(project='ryu')
logging_config.setup_logging(cfg.CONF)
- app_lists = ['neutron.plugins.ofagent.agent.ofa_neutron_agent']
- app_mgr = AppManager.get_instance()
- app_mgr.load_apps(app_lists)
- contexts = app_mgr.create_contexts()
- services = app_mgr.instantiate_apps(**contexts)
- webapp = wsgi.start_service(app_mgr)
- if webapp:
- services.append(hub.spawn(webapp))
- try:
- hub.joinall(services)
- finally:
- app_mgr.close()
+ AppManager.run_apps(['neutron.plugins.ofagent.agent.ofa_neutron_agent'])
if __name__ == "__main__":
--
1.8.3.1
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel