Commit Graph
667 Commits
Author SHA1 Message Date
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
Ben Pfaff a657b91410 Add "self-sign" command to ofp-pki. 2008-10-29 11:27:57 -07:00
Ben Pfaff 1e777f3381 Fix typo in manpage. 2008-10-29 10:30:36 -07:00
Ben Pfaff 65ac65a6d2 Improve the command interface so that it sends back acks or errors. 2008-10-28 12:46:18 -07:00
Ben Pfaff 4fee3e8e11 Delete ununsed file Make.vars. 2008-10-27 16:37:00 -07:00
Ben Pfaff bf3e778844 Add a warning when secchan is invoked with a controller specified as the datapath. 2008-10-27 15:13:11 -07:00
Ben Pfaff b2aec952c7 Add Nicira extension for remote command execution. 2008-10-27 12:58:27 -07:00
Ben Pfaff de5caa4906 Change the secchan "hook" mechanism to be easier to add new callbacks. 2008-10-27 12:58:27 -07:00
Ben Pfaff 9abe7b6f19 Fix typo in default switch config. 2008-10-27 12:58:27 -07:00
Justin Pettit b969b51164 Fix leaking of flows when output action validation fails.
Thanks to Brandon Heller for catching this.
2008-10-25 13:29:17 -07:00
Justin Pettit b89bd39fd9 Fix leaking of flows when output action validation fails.
When action validation fails from a flow add, the flow would be leaked.  This
caused the kmem cache (which handles allocating flow entries) to be unhappy
when we try to unload the OpenFlow module.

Thanks to Brandon Heller for catching this.
2008-10-24 17:24:06 -07:00
Ben Pfaff 18d534b64e Break secchan into multiple files, to make it more maintainable. 2008-10-24 09:43:44 -07:00
Ben Pfaff 7d596723be Controller need not run as root now that we don't use a port below 1024. 2008-10-23 14:22:49 -07:00
Ben Pfaff 9795d7d750 Update manpages to mention new --log-file option.
Move vlog option descriptions into a separate file lib/vlog.man that
is substituted into manpages.

Get rid of individual rules for substituting most files in favor of
a single suffix rule.  Unfortunately this loses the (Emacs-specific)
read-only markings but it simplifies the makefiles.
2008-10-23 14:07:26 -07:00
Ben Pfaff b6eb6bc746 vlog: Add ability to log to an arbitrary file, and following related changes:
* New command-line options for configuring log files, hence:
  - Centralized vlog usage messages.
* New vlogconf action for reopening log files.
* New vlogconf support for specifying a target by pidfile.
2008-10-23 14:07:25 -07:00
Ben Pfaff 278ae88d5f Create rundir, logdir, pkidir at install time. 2008-10-23 14:07:25 -07:00
Ben Pfaff ddbf6040e3 Make pkidir, rundir, logdir modifiable from "configure" command line.
Make "make" behave properly when these are changed by re-running
"configure", by putting their definitions into a generated file that
depends on Makefile.
2008-10-23 14:07:25 -07:00
Ben Pfaff f793b541e2 Introduce logdir (typically /var/log/openflow, by default /usr/local/var/log/openflow). 2008-10-23 14:07:01 -07:00
Ben Pfaff 7014135d8b vlog: Avoid calling any function if nothing will be logged. 2008-10-23 11:09:02 -07:00
Ben Pfaff be0ea769dd Make the format of vlog messages user-configurable. 2008-10-23 11:08:23 -07:00
Ben Pfaff c07c7f5e9e New functions xvasprintf() and strlcpy() and macro va_copy(). 2008-10-23 10:59:42 -07:00
Ben Pfaff 7a7b8e4878 New functions ds_put_uninit(), ds_put_char_multiple(). 2008-10-23 10:59:22 -07:00
Ben Pfaff 49fc472b29 Consistently use AM_CPPFLAGS, not AM_CFLAGS, for -D and -I options. 2008-10-23 10:58:24 -07:00
Ben Pfaff 9246d121a9 Enable SNAT in Debian packages. 2008-10-23 10:58:24 -07:00
Ben Pfaff 73a6f2fbc2 Avoid making Emacs think that this file contains a local variable list. 2008-10-23 10:58:24 -07:00