Skip to content

Commit

Permalink
test-controller: Rename to ovs-testcontroller, again install.
Browse files Browse the repository at this point in the history
mininet uses the Open vSwitch controller by default, for testing.

CC: [email protected]
Reported-at: https://bugs.debian.org/757761
Requested-by: Tomasz Buchert <[email protected]>
Requested-by: Dariusz Dwornikowski <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Justin Pettit <[email protected]>
  • Loading branch information
blp committed Aug 26, 2014
1 parent 588c900 commit 0bc1b46
Show file tree
Hide file tree
Showing 26 changed files with 523 additions and 66 deletions.
8 changes: 4 additions & 4 deletions INSTALL.SSL
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ that contains the PKI structure:
% ovs-pki req+sign ctl controller

ctl-privkey.pem and ctl-cert.pem would need to be copied to the
controller for its use at runtime. If you were to use test-controller,
the simple OpenFlow controller included with Open vSwitch, then the
--private-key and --certificate options, respectively, would point to
these files.
controller for its use at runtime. If, for testing purposes, you were
to use ovs-testcontroller, the simple OpenFlow controller included
with Open vSwitch, then the --private-key and --certificate options,
respectively, would point to these files.

It is very important to make sure that no stray copies of
ctl-privkey.pem are created, because they could be used to impersonate
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.XenServer
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ controller on XenServer and, as a consequence of the step above that
deletes all of the bridges at boot time, controller configuration only
persists until XenServer reboot. The configuration database manager
can, however, configure controllers for bridges. See the BUGS section
of test-controller(8) for more information on this topic.
of ovs-testcontroller(8) for more information on this topic.

* The Open vSwitch startup script automatically adds a firewall rule
to allow GRE traffic. This rule is needed for the XenServer feature
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Post-v2.3.0
* Nicira extension "move" actions may now be included in action sets.
- ovsdb-server: New OVSDB protocol extension allows inequality tests on
"optional scalar" columns. See ovsdb-server(1) for details.
- test-controller has been renamed ovs-testcontroller at request of users
who find it useful for testing basic OpenFlow setups. It is still not
a necessary or desirable part of most Open vSwitch deployments.


v2.3.0 - 14 Aug 2014
Expand Down
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ Open vSwitch also provides some tools:
* ovs-pki, a utility for creating and managing the public-key
infrastructure for OpenFlow switches.

* ovs-testcontroller, a simple OpenFlow controller that may be useful
for testing (though not for production).

* A patch to tcpdump that enables it to parse OpenFlow messages.

What other documentation is available?
Expand Down
1 change: 1 addition & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
/openvswitch-switch
/openvswitch-switch.copyright
/openvswitch-test
/openvswitch-testcontroller
/openvswitch-vtep
/python-openvswitch
/tmp
8 changes: 8 additions & 0 deletions debian/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ EXTRA_DIST += \
debian/openvswitch-test.dirs \
debian/openvswitch-test.install \
debian/openvswitch-test.manpages \
debian/openvswitch-testcontroller.README.Debian \
debian/openvswitch-testcontroller.default \
debian/openvswitch-testcontroller.dirs \
debian/openvswitch-testcontroller.init \
debian/openvswitch-testcontroller.install \
debian/openvswitch-testcontroller.manpages \
debian/openvswitch-testcontroller.postinst \
debian/openvswitch-testcontroller.postrm \
debian/openvswitch-vtep.default \
debian/openvswitch-vtep.dirs \
debian/openvswitch-vtep.init \
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
openvswitch (2.3.90-1) unstable; urgency=low
[ Open vSwitch team ]
* The openvswitch-testcontroller package is new. It reintroduces the
simple OpenFlow controller that was packaged with Open vSwitch prior to
version 2.1, at request of users who find it useful for testing basic
OpenFlow setups. It is still not a necessary or desirable part of most
Open vSwitch deployments.
* New upstream version
- Nothing yet! Try NEWS...

Expand Down
17 changes: 16 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ Description: Open vSwitch common components
to support distribution across multiple physical servers similar to
VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V.
.
openvswitch-common provides components required by both openvswitch-switch.
openvswitch-common provides components required by both openvswitch-switch
and openvswitch-testcontroller.

Package: openvswitch-switch
Architecture: linux-any
Expand Down Expand Up @@ -117,13 +118,27 @@ Description: Open vSwitch public key infrastructure dependency package
Open vSwitch switches and controllers, reducing the risk of
man-in-the-middle attacks on the Open vSwitch network infrastructure.

Package: openvswitch-testcontroller
Architecture: linux-any
Depends:
${shlibs:Depends}, openvswitch-common (= ${binary:Version}),
openvswitch-pki (= ${source:Version}), ${misc:Depends}
Description: Simple controller for testing OpenFlow setups
This controller enables OpenFlow switches that connect to it to act
as MAC-learning Ethernet switches. It can be used for initial
testing of OpenFlow networks. It is not a necessary or desirable
part of a production OpenFlow deployment.

Package: openvswitch-dbg
Section: debug
Architecture: linux-any
Depends:
${shlibs:Depends}, ${misc:Depends},
openvswitch-common (= ${binary:Version}),
openvswitch-switch (= ${binary:Version})
Conflicts:
openvswitch-testcontroller (<< ${binary:Version}),
openvswitch-testcontroller (>> ${binary:Version})
Description: Debug symbols for Open vSwitch packages
Open vSwitch is a production quality, multilayer, software-based,
Ethernet virtual switch. It is designed to enable massive network
Expand Down
12 changes: 12 additions & 0 deletions debian/openvswitch-testcontroller.README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
README.Debian for openvswitch-testcontroller
--------------------------------------------

The controller in this package enables OpenFlow switches that connect
to it to act as MAC-learning Ethernet switches. It can be used for
initial testing of OpenFlow networks. It is not a necessary or
desirable part of a production OpenFlow deployment.

To (re)configure the controller, edit /etc/default/openvswitch-testcontroller
and run "/etc/init.d/openvswitch-testcontroller restart".

-- Ben Pfaff <[email protected]>, Thu, 14 Aug 2014 10:49:34 -0700
29 changes: 29 additions & 0 deletions debian/openvswitch-testcontroller.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a POSIX shell fragment -*- sh -*-

# LISTEN: What OpenFlow connection methods should the controller listen on?
#
# This is a space-delimited list of connection methods:
#
# * "pssl:[PORT]": Listen for SSL connections on the specified PORT
# (default: 6633). The private key, certificate, and CA certificate
# must be specified below.
#
# * "ptcp:[PORT]": Listen for TCP connections on the specified PORT
# (default: 6633). Not recommended for security reasons.
#
LISTEN="pssl:"

# PRIVKEY: Name of file containing controller's private key.
# Required if SSL enabled.
PRIVKEY=/etc/openvswitch-testcontroller/privkey.pem

# CERT: Name of file containing certificate for private key.
# Required if SSL enabled.
CERT=/etc/openvswitch-testcontroller/cert.pem

# CACERT: Name of file containing switch CA certificate.
# Required if SSL enabled.
CACERT=/etc/openvswitch-testcontroller/cacert.pem

# Additional options to pass to ovs-testcontroller, e.g. "--hub"
DAEMON_OPTS=""
1 change: 1 addition & 0 deletions debian/openvswitch-testcontroller.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
etc/openvswitch-testcontroller
Loading

0 comments on commit 0bc1b46

Please sign in to comment.