Ben Pfaff
67e15579a7
New package openflow-dbg for debugging symbols for the rest of OpenFlow.
2008-11-06 10:25:08 -08:00
Ben Pfaff
40840f6a54
Fix typo in code to set core limit that broke the openflow-switch init script.
2008-11-06 10:07:41 -08:00
Ben Pfaff
91bdbe0c01
Add openflow-switch settings for the limit on core files.
2008-11-05 15:48:59 -08:00
Ben Pfaff
08ce9884b9
Add new Debian package "corekeeper" to centralize and reap core files.
2008-11-05 15:48:59 -08:00
Justin Pettit
1b557ee56c
Rename switchmon to switchui.
2008-11-05 15:24:29 -08:00
Ben Pfaff
623db5c2ca
Ignore openflow-monitor and openflow-wdt build directories.
2008-11-05 14:07:15 -08:00
Justin Pettit
243fd1721d
Add dist_sbin_SCRIPTS make target.
2008-11-05 13:01:05 -08:00
Justin Pettit
f25e41f017
Have git ignore the monitor and wdt packaging links.
2008-11-05 13:00:45 -08:00
Ben Pfaff
0e061502c9
When a new OpenFlow kernel module package is installed, restart the switch.
...
This helps to ensure that the secchan and the kernel module are exactly
the same version.
2008-11-05 10:22:41 -08:00
Ben Pfaff
8798af6e81
Unload kernel module when stopping switch, in Debian init scripts.
...
This way, we have a better chance at ensuring that the secchan and the
kernel module are exactly the same version.
2008-11-05 10:20:04 -08:00
Ben Pfaff
a4d3f61b0a
Add required "subst" script to EXTRA_DIST.
2008-11-05 10:08:47 -08:00
Ben Pfaff
9953943475
Move "update" remote command from base secchan into Debian packaging.
...
The update command only works with Debian anyway, so there's no point
in installing it elsewhere.
2008-11-05 10:04:31 -08:00
Ben Pfaff
45fd544a07
New switch remote command for setting configuration parameters.
2008-11-05 10:03:49 -08:00
Ben Pfaff
ce2ff80d67
Make ofp-switch-setup preserve config variables that it does not set itself.
...
Before, it would delete them. This probably kept ofp-switch-setup from
working at all given the changes in openflow-switch.default. Now, it
should do better (but it has not been tested).
2008-11-05 10:03:07 -08:00
Ben Pfaff
f2c6ec1f77
Add "execute" to dpctl usage message.
2008-11-04 16:45:21 -08:00
Ben Pfaff
7f33221139
Fix openflow-switch log rotation.
...
The vlogconf command syntax was wrong. The pidfile also didn't contain
the right pid (which was fixed in the previous commit).
2008-11-04 16:14:00 -08:00
Ben Pfaff
fe6988251d
Create vlog sockets after daemonizing, so that pidfiles can be used.
...
Otherwise, pidfiles contain the process ID of the process that forked
and exited, so that "vlogconf --target <program.pid>" will fail.
2008-11-04 16:14:00 -08:00
Justin Pettit
efffd49643
Dump more detailed information about system state from get-logs.
2008-11-04 15:02:04 -08:00
Ben Pfaff
70ebdff4f8
Use "set -e" command instead of "#! /bin/sh -e" magic.
...
Otherwise, running the script through an explicit shell invocation, such
as "sh -x <script>" for debugging, will fail to set -e and therefore the
script's behavior will change.
2008-11-04 14:26:38 -08:00
Ben Pfaff
67d31bee42
Add missing dependency on openssl to openflow-pki.
...
Otherwise the ofp-pki script cannot execute it.
2008-11-04 14:24:18 -08:00
Ben Pfaff
af26d107aa
Add build number to datapath version and --version output from programs.
2008-11-04 14:10:00 -08:00
Ben Pfaff
a660f93e18
In reboot script, send SIGUSR1 to ofp-switchmon to make it display "Rebooting".
2008-11-04 09:34:26 -08:00
Ben Pfaff
0202d2c761
Call VLOG_WARN before send_child_message(), to get correct errno value.
...
Otherwise we end up with nonsense like "failed to stat...: Success" in
the log.
2008-11-03 17:04:22 -08:00
Ben Pfaff
72c1cf8277
Fix location of installed commands.
2008-11-03 17:03:22 -08:00
Ben Pfaff
3eeebb50aa
Pass --enable-snat to configure for datapath module also.
2008-11-03 16:26:51 -08:00
Ben Pfaff
8872d86328
Make COMMANDS option in openflow-switch defaults file work.
...
The setting was being accidentally ignored, so commands like "reboot", etc.
would not work at all.
2008-11-03 10:45:38 -08:00
Ben Pfaff
f314a833ae
Add libncurses5-dev as build dependency for openflow.
2008-10-31 14:14:22 -07:00
Ben Pfaff
b5a4509474
Implement log rotation in openflow-switch.
2008-10-31 14:09:53 -07:00
Ben Pfaff
02074909ec
Make secchan log to file by default.
2008-10-31 14:09:53 -07:00
Ben Pfaff
77d9bc9026
Add /var/log/openflow directory to openflow-common.
...
This ensures that every system with OpenFlow packages will have this
directory available for logging.
2008-10-31 14:09:53 -07:00
Ben Pfaff
ca7265a956
Send openssl output to logfile on "ofp-pki self-sign" also.
2008-10-31 14:09:53 -07:00
Ben Pfaff
bceb2c3912
Don't make ofp-pki --log option relative to log directory.
...
That behavior may have made sense, but it was too surprising.
2008-10-31 14:09:53 -07:00
Ben Pfaff
8dee5029d8
Put ofp-pki logfile in log directory instead of in pki directory.
...
This should fix problems with trying to log on a machine that doesn't have
openflow-pki installed (because such machines didn't have the pki
directory). Every machine needs the log directory.
2008-10-31 14:09:53 -07:00
Ben Pfaff
2e424547ff
Fix openflow-datapath-source bugs added in "Simplify debian/rules..." commit.
2008-10-31 14:09:53 -07:00
Ben Pfaff
aaab8d4cf0
Add settings for switch netmask and gateway for in-band mode to init script.
...
Previously we supported setting a switch IP address but not those
parameters, which are obviously required also.
2008-10-31 14:09:53 -07:00
Ben Pfaff
4f76bd3121
Add extension hooks to debian/rules.
2008-10-31 14:09:53 -07:00
Ben Pfaff
480d4a9a7b
Move ofp-switch-config into new package openflow-switch-config.
...
This reduces the openflow-switch package's number of dependencies, making
it easier to install.
2008-10-31 14:09:53 -07:00
Ben Pfaff
a662402bac
Improve the error message when vconn gets an unexpected version.
2008-10-31 14:09:53 -07:00
Ben Pfaff
6fc8bc9f20
In openflow-switch init script, correct secchan option name.
2008-10-31 14:09:53 -07:00
Ben Pfaff
77171d02d6
In openflow-switch init script, do not re-load openflow_mod if already loaded.
2008-10-31 14:09:53 -07:00
Ben Pfaff
3e2e9b420b
Ignore openflow-pki-server directory.
2008-10-31 14:09:53 -07:00
Ben Pfaff
b1822e1ff8
Add missing header file to datapath/Modules.mk.
...
This fixes the generated Debian openflow-datapath-source package.
2008-10-31 14:09:53 -07:00
Justin Pettit
b7f66c424f
Pull configuration information from DMI.
...
Pull configuration information from DMI when available. In its current form,
it will only use DMI information set by Nicira. Otherwise, it will use default
values. This change also makes DPIDs the same as the MAC address of the
local OpenFlow device.
2008-10-30 16:23:27 -07:00
Ben Pfaff
949a799037
Fix vconn_transact() bug introduced in commit 65ac65a6d2,
...
"Improve the command interface so that it sends back acks or errors."
Oops. That was dumb.
Thanks to Justin for reporting the problem.
2008-10-30 10:38:03 -07:00
Ben Pfaff
42992b0468
Simplify debian/rules by adding new openflow-datapath-source.install file.
2008-10-30 10:24:36 -07:00
Ben Pfaff
686cd5c3d8
Break HTTP parts of openflow-pki package into new openflow-pki-server package.
2008-10-30 10:24:02 -07:00
Ben Pfaff
60bcda0381
Fix support for out-of-band control in Debian switch init script.
...
Not tested.
2008-10-29 16:19:43 -07:00
Ben Pfaff
6b617bac12
Move exported headers to include/openflow, private headers to lib/.
...
This makes it easier to install the headers, or to use them directly from
another software package with -I$(openflow)/include, without invading
the top-level include file namespace.
2008-10-29 15:15:45 -07:00
Ben Pfaff
b4518e78a0
New function netdev_set_etheraddr().
2008-10-29 13:46:54 -07:00
Ben Pfaff
69133a6b68
Fix parsing of logging options in OpenFlow controller.
...
Oops.
2008-10-29 13:46:34 -07:00