backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / cmd / ofa_neutron_agent.py
1 #!/usr/bin/env python
2
3 # Copyright (C) 2014 VA Linux Systems Japan K.K.
4 # All Rights Reserved.
5 #
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
9 #
10 #         http://www.apache.org/licenses/LICENSE-2.0
11 #
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
16 #    under the License.
17 #
18 # @author: Fumihiko Kakuma, VA Linux Systems Japan K.K.
19 # @author: YAMAMOTO Takashi, VA Linux Systems Japan K.K.
20
21 # NOTE: This module is used by Neutron "ofagent" agent for
22 # IceHouse release.  Juno and later releases do not use this.
23 # TODO: Remove this module when IceHouse is EOL'ed.
24
25 from ryu.lib import hub
26 hub.patch()
27
28 from ryu import cfg
29
30 from neutron.common import config as logging_config
31
32 from ryu.base.app_manager import AppManager
33
34
35 def main():
36     cfg.CONF(project='ryu')
37     logging_config.setup_logging(cfg.CONF)
38     AppManager.run_apps(['neutron.plugins.ofagent.agent.ofa_neutron_agent'])
39
40
41 if __name__ == "__main__":
42     main()