1
# Copyright (C) 2014 VA Linux Systems Japan K.K.
2
# Copyright (C) 2014 Fumihiko Kakuma <kakuma at valinux co jp>
3
# Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp>
6
# Licensed under the Apache License, Version 2.0 (the "License"); you may
7
# not use this file except in compliance with the License. You may obtain
8
# a copy of the License at
10
# http://www.apache.org/licenses/LICENSE-2.0
12
# Unless required by applicable law or agreed to in writing, software
13
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
# License for the specific language governing permissions and limitations
18
from ryu.lib import hub
23
from oslo.config import cfg
24
from ryu.base.app_manager import AppManager
25
from ryu import cfg as ryu_cfg
27
from neutron.common import config as common_config
31
common_config.init(sys.argv[1:])
32
# the following check is a transitional workaround to make this work
33
# with different versions of ryu.
34
# TODO(yamamoto) remove this later
35
if ryu_cfg.CONF is not cfg.CONF:
36
ryu_cfg.CONF(project='ryu', args=[])
37
common_config.setup_logging()
38
AppManager.run_apps(['neutron.plugins.ofagent.agent.ofa_neutron_agent'])