Signed-off-by: Yoshihiro Kaneko <[email protected]> --- debian/changelog | 5 + debian/clean | 1 + debian/compat | 1 + debian/control | 67 +++++++++++++ debian/copyright | 62 ++++++++++++ debian/docs | 1 + debian/log.conf | 21 ++++ debian/python-ryu.install | 1 + debian/rules | 12 +++ debian/ryu-bin.dirs | 1 + debian/ryu-bin.install | 3 + debian/ryu-bin.logrotate | 7 ++ debian/ryu-bin.manpages | 1 + debian/ryu-bin.postrm | 2 + debian/ryu-bin.upstart | 9 ++ debian/ryu-manager.8 | 232 +++++++++++++++++++++++++++++++++++++++++++++ debian/ryu.conf | 36 +++++++ debian/source/format | 1 + 18 files changed, 463 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/log.conf create mode 100644 debian/python-ryu.install create mode 100755 debian/rules create mode 100644 debian/ryu-bin.dirs create mode 100644 debian/ryu-bin.install create mode 100644 debian/ryu-bin.logrotate create mode 100644 debian/ryu-bin.manpages create mode 100644 debian/ryu-bin.postrm create mode 100644 debian/ryu-bin.upstart create mode 100644 debian/ryu-manager.8 create mode 100644 debian/ryu.conf create mode 100644 debian/source/format
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ec4c626 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ryu (3.10-1) trusty; urgency=low + + * Initial release. + + -- Ryu Project Team <[email protected]> Mon, 16 Jun 2014 15:21:36 +0900 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..e8ce5d8 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +ryu.egg-info/* diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..15ddb54 --- /dev/null +++ b/debian/control @@ -0,0 +1,67 @@ +Source: ryu +Section: net +Priority: optional +Maintainer: Ryu Project Team <[email protected]> +Build-Depends: debhelper (>= 9.0.0), python-all (>= 2.6) +Build-Depends-Indep: + python-eventlet, + python-lxml, + python-msgpack (>= 0.3.0), + python-netaddr, + python-oslo.config (>= 1:1.2.0), + python-paramiko, + python-routes, + python-six (>= 1.4.0), + python-webob (>=1.0.8), + python-setuptools, + python-pip, + python-pbr +Standards-Version: 3.9.5 +Homepage: http://osrg.github.io/ryu/ +Vcs-Git: git://github.com/osrg/ryu.git +Vcs-Browser: http://github.com/osrg/ryu +XS-Python-Version: >= 2.6 + +Package: python-ryu +Architecture: all +Section: python +Depends: + python-eventlet, + python-lxml, + python-msgpack (>= 0.3.0), + python-netaddr, + python-oslo.config (>= 1:1.2.0), + python-paramiko, + python-routes, + python-six (>= 1.4.0), + python-webob (>=1.0.8), + ${misc:Depends}, + ${python:Depends} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Ryu is a software defined networking framework + Ryu is a component-based software defined networking framework. + Ryu provides software components with well defined API that make + it easy for developers to create new network management and control + applications. Ryu supports various protocols for managing network + devices, such as OpenFlow, Netconf, OF-config, etc. About OpenFlow, + Ryu supports fully 1.0, 1.2, 1.3, 1.4 and Nicira Extensions. + . + This package provides the Python library. + +Package: ryu-bin +Architecture: all +Depends: + python-ryu, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: Ryu is a software defined networking framework + Ryu is a component-based software defined networking framework. + Ryu provides software components with well defined API that make + it easy for developers to create new network management and control + applications. Ryu supports various protocols for managing network + devices, such as OpenFlow, Netconf, OF-config, etc. About OpenFlow, + Ryu supports fully 1.0, 1.2, 1.3, 1.4 and Nicira Extensions. + . + This package provides the Ryu manager. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..63d77d3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,62 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ryu +Source: http://github.com/osrg/ryu + +Files: * +Copyright: 2014 Ryu Project Team <[email protected]> +License: Apache-2.0 + +Files: ryu/contrib/_eventlet/* +Copyright: 2005-2006, Bob Ippolito + 2007-2010, Linden Research, Inc. + 2008-2010, Eventlet Contributors (see AUTHORS) +License: MIT + +Files: ryu/contrib/ncclient/* +Copyright: Shikhar Bhushan <[email protected]> + Leonidas Poulopoulos <[email protected]> + Ebben Aries <[email protected]> +License: Apache-2.0 + +Files: ryu/contrib/tinyrpc/* +Copyright: 2013 Marc Brinkmann +License: MIT + +Files: ryu/contrib/ovs/* +Copyright: 2009, 2010, 2011, 2012, 2013 Nicira, Inc. +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian-based systems, the full text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/log.conf b/debian/log.conf new file mode 100644 index 0000000..9b45632 --- /dev/null +++ b/debian/log.conf @@ -0,0 +1,21 @@ +[loggers] +keys = root + +[handlers] +keys = file + +[formatters] +keys = simple + +[logger_root] +level = INFO +handlers = file + +[handler_file] +class = handlers.WatchedFileHandler +formatter = simple +args = ('/var/log/ryu/ryu-manager.log',) + +[formatter_simple] +format = %(asctime)s.%(msecs)03d %(levelname)s %(name)s %(message)s +datefmt = %Y-%m-%d %H:%M:%S diff --git a/debian/python-ryu.install b/debian/python-ryu.install new file mode 100644 index 0000000..036c6b9 --- /dev/null +++ b/debian/python-ryu.install @@ -0,0 +1 @@ +usr/lib/python*/dist-packages/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e393efe --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + +%: + dh $@ --with python2 diff --git a/debian/ryu-bin.dirs b/debian/ryu-bin.dirs new file mode 100644 index 0000000..d1ca8ae --- /dev/null +++ b/debian/ryu-bin.dirs @@ -0,0 +1 @@ +/var/log/ryu diff --git a/debian/ryu-bin.install b/debian/ryu-bin.install new file mode 100644 index 0000000..91df0d5 --- /dev/null +++ b/debian/ryu-bin.install @@ -0,0 +1,3 @@ +usr/bin/ryu-manager usr/bin +debian/ryu.conf etc/ryu +debian/log.conf etc/ryu diff --git a/debian/ryu-bin.logrotate b/debian/ryu-bin.logrotate new file mode 100644 index 0000000..036e803 --- /dev/null +++ b/debian/ryu-bin.logrotate @@ -0,0 +1,7 @@ +/var/log/ryu/ryu-manager.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/ryu-bin.manpages b/debian/ryu-bin.manpages new file mode 100644 index 0000000..495c34f --- /dev/null +++ b/debian/ryu-bin.manpages @@ -0,0 +1 @@ +debian/ryu-manager.8 diff --git a/debian/ryu-bin.postrm b/debian/ryu-bin.postrm new file mode 100644 index 0000000..ac41a1b --- /dev/null +++ b/debian/ryu-bin.postrm @@ -0,0 +1,2 @@ +update-rc.d -f ryu-bin remove >/dev/null || exit $? +#DEBHELPER# diff --git a/debian/ryu-bin.upstart b/debian/ryu-bin.upstart new file mode 100644 index 0000000..a276474 --- /dev/null +++ b/debian/ryu-bin.upstart @@ -0,0 +1,9 @@ +description "Ryu manager" + +start on (starting neutron-server or runlevel [2345]) +stop on runlevel [!2345] + +respawn + +exec start-stop-daemon --start --exec /usr/bin/ryu-manager -- \ + --config-file /etc/ryu/ryu.conf diff --git a/debian/ryu-manager.8 b/debian/ryu-manager.8 new file mode 100644 index 0000000..0d0e66a --- /dev/null +++ b/debian/ryu-manager.8 @@ -0,0 +1,232 @@ +.\"Text automatically generated by txt2man +.TH ryu-manager 8 "13 June 2014" "" "Ryu Manager's Manual" +.SH NAME +\fBryu-manager \fP- a service for Ryu applications +\fB +.SH SYNOPSIS +.nf +.fam C +\fBryu-manager\fP [\fB-h\fP] + [\fB--app-lists\fP \fIAPP_LISTS\fP] [\fB--ca-certs\fP \fICA_CERTS\fP] + [\fB--config-dir\fP \fIDIR\fP] [\fB--config-file\fP \fIPATH\fP] + [\fB--ctl-cert\fP \fICTL_CERT\fP] [\fB--ctl-privkey\fP \fICTL_PRIVKEY\fP] + [\fB--default-log-level\fP \fIDEFAULT_LOG_LEVEL\fP] [\fB--explicit-drop\fP] + [\fB--install-lldp-flow\fP] [\fB--log-config-file\fP \fILOG_CONFIG_FILE\fP] + [\fB--log-dir\fP \fILOG_DIR\fP] [\fB--log-file\fP \fILOG_FILE\fP] + [\fB--log-file-mode\fP \fILOG_FILE_MODE\fP] + [\fB--neutron-admin-auth-url\fP \fINEUTRON_ADMIN_AUTH_URL\fP] + [\fB--neutron-admin-password\fP \fINEUTRON_ADMIN_PASSWORD\fP] + [\fB--neutron-admin-tenant-name\fP \fINEUTRON_ADMIN_TENANT_NAME\fP] + [\fB--neutron-admin-username\fP \fINEUTRON_ADMIN_USERNAME\fP] + [\fB--neutron-auth-strategy\fP \fINEUTRON_AUTH_STRATEGY\fP] + [\fB--neutron-controller-addr\fP \fINEUTRON_CONTROLLER_ADDR\fP] + [\fB--neutron-url\fP \fINEUTRON_URL\fP] + [\fB--neutron-url-timeout\fP \fINEUTRON_URL_TIMEOUT\fP] + [\fB--noexplicit-drop\fP] [\fB--noinstall-lldp-flow\fP] + [\fB--noobserve-links\fP] [\fB--nouse-stderr\fP] [\fB--nouse-syslog\fP] + [\fB--noverbose\fP] [\fB--observe-links\fP] + [\fB--ofp-listen-host\fP \fIOFP_LISTEN_HOST\fP] + [\fB--ofp-ssl-listen-port\fP \fIOFP_SSL_LISTEN_PORT\fP] + [\fB--ofp-tcp-listen-port\fP \fIOFP_TCP_LISTEN_PORT\fP] [\fB--use-stderr\fP] + [\fB--use-syslog\fP] [\fB--verbose\fP] [\fB--version\fP] + [\fB--wsapi-host\fP \fIWSAPI_HOST\fP] [\fB--wsapi-port\fP \fIWSAPI_PORT\fP] + [\fB--test-switch-dir\fP \fITEST-SWITCH_DIR\fP] + [\fB--test-switch-target\fP \fITEST-SWITCH_TARGET\fP] + [\fB--test-switch-tester\fP \fITEST-SWITCH_TESTER\fP] + [\fIapp\fP [\fIapp\fP \.\.\.]] + +.fam T +.fi +.fam T +.fi +.SH DESCRIPTION +\fBryu-manager\fP is the executable for Ryu applications. \fBryu-manager\fP loads +Ryu applications and run it. +.PP +Ryu is a component-based software defined networking framework. +Ryu provides software components with well defined API that make +it easy for developers to create new network management and control +applications. Ryu supports various protocols for managing network +devices, such as OpenFlow, Netconf, OF-config, etc. About OpenFlow, +Ryu supports fully 1.0, 1.2, 1.3, 1.4 and Nicira Extensions. +.SH OPTIONS +.TP +.B +\fIapp\fP +application module name to run +.TP +.B +\fB-h\fP, \fB--help\fP +show help message and exit +.TP +.B +--\fIapp\fP-lists \fIAPP_LISTS\fP +application module name to run +.TP +.B +\fB--ca-certs\fP \fICA_CERTS\fP +CA certificates +.TP +.B +\fB--config-dir\fP \fIDIR\fP +Path to a config directory to pull *.conf files from. +This file set is sorted, so as to provide a +predictable parse order if individual options are +over-ridden. The set is parsed after the \fBfile\fP(s) +specified via previous \fB--config-file\fP, arguments hence +over-ridden options in the directory take precedence. +.TP +.B +\fB--config-file\fP \fIPATH\fP +Path to a config file to use. Multiple config files +can be specified, with values in later files taking +precedence. The default files used are: None +.TP +.B +\fB--ctl-cert\fP \fICTL_CERT\fP +controller certificate +.TP +.B +\fB--ctl-privkey\fP \fICTL_PRIVKEY\fP +controller private key +.TP +.B +\fB--default-log-level\fP \fIDEFAULT_LOG_LEVEL\fP +default log level +.TP +.B +\fB--explicit-drop\fP +link discovery: explicitly drop lldp packet in +.TP +.B +\fB--install-lldp-flow\fP +link discovery: explicitly install flow entry to send +lldp packet to controller +.TP +.B +\fB--log-config-file\fP \fILOG_CONFIG_FILE\fP +Path to a logging config file to use +.TP +.B +\fB--log-dir\fP \fILOG_DIR\fP +log file directory +.TP +.B +\fB--log-file\fP \fILOG_FILE\fP +log file name +.TP +.B +\fB--log-file-mode\fP \fILOG_FILE_MODE\fP +default log file permission +.TP +.B +\fB--neutron-admin-auth-url\fP \fINEUTRON_ADMIN_AUTH_URL\fP +auth url for connecting to neutron in admin context +.TP +.B +\fB--neutron-admin-password\fP \fINEUTRON_ADMIN_PASSWORD\fP +password for connecting to neutron in admin context +.TP +.B +\fB--neutron-admin-tenant-name\fP \fINEUTRON_ADMIN_TENANT_NAME\fP +tenant name for connecting to neutron in admin context +.TP +.B +\fB--neutron-admin-username\fP \fINEUTRON_ADMIN_USERNAME\fP +username for connecting to neutron in admin context +.TP +.B +\fB--neutron-auth-strategy\fP \fINEUTRON_AUTH_STRATEGY\fP +auth strategy for connecting to neutron in +admincontext +.TP +.B +\fB--neutron-controller-addr\fP \fINEUTRON_CONTROLLER_ADDR\fP +openflow method:address:port to set controller ofovs +bridge +.TP +.B +\fB--neutron-url\fP \fINEUTRON_URL\fP +URL for connecting to neutron +.TP +.B +\fB--neutron-url-timeout\fP \fINEUTRON_URL_TIMEOUT\fP +timeout value for connecting to neutron in seconds +.TP +.B +\fB--noexplicit-drop\fP +The inverse of \fB--explicit-drop\fP +.TP +.B +\fB--noinstall-lldp-flow\fP +The inverse of \fB--install-lldp-flow\fP +.TP +.B +\fB--noobserve-links\fP +The inverse of \fB--observe-links\fP +.TP +.B +\fB--nouse-stderr\fP +The inverse of \fB--use-stderr\fP +.TP +.B +\fB--nouse-syslog\fP +The inverse of \fB--use-syslog\fP +.TP +.B +\fB--noverbose\fP +The inverse of \fB--verbose\fP +.TP +.B +\fB--observe-links\fP +observe link discovery events. +.TP +.B +\fB--ofp-listen-host\fP \fIOFP_LISTEN_HOST\fP +openflow listen host +.TP +.B +\fB--ofp-ssl-listen-port\fP \fIOFP_SSL_LISTEN_PORT\fP +openflow ssl listen port +.TP +.B +\fB--ofp-tcp-listen-port\fP \fIOFP_TCP_LISTEN_PORT\fP +openflow tcp listen port +.TP +.B +\fB--use-stderr\fP +log to standard error +.TP +.B +\fB--use-syslog\fP +output to syslog +.TP +.B +\fB--verbose\fP +show debug output +.TP +.B +\fB--version\fP +show program's version number and exit +.TP +.B +\fB--wsapi-host\fP \fIWSAPI_HOST\fP +webapp listen host +.TP +.B +\fB--wsapi-port\fP \fIWSAPI_PORT\fP +webapp listen port +.TP +.B +\fB--test-switch-dir\fP \fITEST-SWITCH_DIR\fP +test files directory +.TP +.B +\fB--test-switch-target\fP \fITEST-SWITCH_TARGET\fP +target sw dp-id +.TP +.B +\fB--test-switch-tester\fP \fITEST-SWITCH_TESTER\fP +tester sw dp-id +.SH AUTHOR +Ryu Project Team <[email protected]> diff --git a/debian/ryu.conf b/debian/ryu.conf new file mode 100644 index 0000000..1155af4 --- /dev/null +++ b/debian/ryu.conf @@ -0,0 +1,36 @@ +[DEFAULT] +log_config_file=/etc/ryu/log.conf +# app_lists = $RYU_APPS +# +# for OpenStack Neutron Ryu plugin: +# mac address based isolation +#app_lists = ryu.app.simple_isolation,ryu.app.rest +# VLAN +#app_lists=ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.simple_vlan +# GRE tunneling +#app_lists=ryu.app.gre_tunnel,ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.tunnel_port_updater +# +# wsapi_host=<hostip> +# wsapi_port=<port:8080> +# ofp_listen_host=<hostip> +# ofp_tcp_listen_port=<port:6633> +#wsapi_host = 0.0.0.0 +#wsapi_port = 8080 +#ofp_listen_host = 0.0.0.0 +#ofp_tcp_listen_port = 6633 +# +# the followings must be set according to neutron settings +# neutron_url = http://$Q_HOST:$Q_PORT +# neutron_admin_username = $Q_ADMIN_USERNAME +# neutron_admin_password = $SERVICE_PASSWORD +# neutron_admin_tenant_name = $SERVICE_TENANT_NAME +# neutron_admin_auth_url=$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_AUTH_PORT/v2.0 +# neutron_auth_strategy = $Q_AUTH_STRATEGY +# neutron_controller_addr = tcp:$RYU_OFP_HOST:$RYU_OFP_PORT +#neutron_url = http://192.168.0.1:9696 +#neutron_admin_username = admin +#neutron_admin_password = password +#neutron_admin_tenant_name = service +#neutron_admin_auth_url = http://192.168.0.1:5000/v2.0 +#neutron_auth_strategy = keystone +#neutron_controller_addr = tcp:192.168.0.1:6633 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- 1.7.9.5 ------------------------------------------------------------------------------ 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
