~ubuntu-branches/ubuntu/wily/ryu/wily-proposed

« back to all changes in this revision

Viewing changes to ryu/cmd/ofa_neutron_agent.py

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski
  • Date: 2014-08-18 16:58:52 UTC
  • Revision ID: package-import@ubuntu.com-20140818165852-i0qck3g5mw7rtxt0
Tags: upstream-3.12
ImportĀ upstreamĀ versionĀ 3.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
from ryu.lib import hub
 
22
hub.patch()
 
23
 
 
24
from ryu import cfg
 
25
 
 
26
from neutron.common import config as logging_config
 
27
 
 
28
from ryu.base.app_manager import AppManager
 
29
 
 
30
 
 
31
def main():
 
32
    cfg.CONF(project='ryu')
 
33
    logging_config.setup_logging(cfg.CONF)
 
34
    AppManager.run_apps(['neutron.plugins.ofagent.agent.ofa_neutron_agent'])
 
35
 
 
36
 
 
37
if __name__ == "__main__":
 
38
    main()